Jabber: Report where Zulip config not found, clarifying typing.

This commit is contained in:
neiljp (Neil Pilgrim) 2018-01-08 07:40:12 -08:00 committed by showell
parent b5c3442b57
commit d3220eefe7

View file

@ -405,7 +405,11 @@ option does not affect login credentials.'''.replace("\n", " "))
format='%(levelname)-8s %(message)s')
if options.zulip_config_file is None:
config_file = zulip.get_default_config_filename()
default_config_file = zulip.get_default_config_filename()
if default_config_file is not None:
config_file = default_config_file
else:
config_error("Config file not found via --zulip-config_file or environment variable.")
else:
config_file = options.zulip_config_file