mirror of
https://github.com/samsonjs/imapbackup.git
synced 2026-04-27 14:57:44 +00:00
Makes the timeout option optional
The `--timeout` / `-t` option was made mandatory (by code) when introduced. Omitting the option would cause a `KeyError: 'timeout`. This commit makes it optional by adding a default value (of 60) when option is not given.
This commit is contained in:
parent
e1ad2d3e5f
commit
f5aeab9e26
1 changed files with 2 additions and 0 deletions
|
|
@ -536,6 +536,8 @@ def get_config():
|
||||||
config['port'] = 993
|
config['port'] = 993
|
||||||
else:
|
else:
|
||||||
config['port'] = 143
|
config['port'] = 143
|
||||||
|
if not 'timeout' in config:
|
||||||
|
config['timeout'] = 60
|
||||||
|
|
||||||
# done!
|
# done!
|
||||||
return config
|
return config
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue