mar10 / pyftpsync

Synchronize directories using FTP(S), SFTP, or file system access.
https://pyftpsync.readthedocs.io
MIT License
117 stars 25 forks source link

Crash when not setting verbose option #26

Closed frozax closed 4 years ago

frozax commented 6 years ago

The following line should be a options.get

https://github.com/mar10/pyftpsync/blob/6711f2ff48944f30ff3fa413291dd6a6cc0dee0b/ftpsync/synchronizers.py#L167

mar10 commented 6 years ago

Thanks!

pg commented 4 years ago

I was just using version 3.1.0, and this still seems to be a problem if I don't set the verbose option in a script.

util.py, line 211, in get_credentials_for_url
    verbose = int(opts.get("verbose"))
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'