From d3220eefe7a82fdc3db1fc43bc99ddc3df505459 Mon Sep 17 00:00:00 2001 From: "neiljp (Neil Pilgrim)" Date: Mon, 8 Jan 2018 07:40:12 -0800 Subject: [PATCH] Jabber: Report where Zulip config not found, clarifying typing. --- zulip/integrations/jabber/jabber_mirror_backend.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/zulip/integrations/jabber/jabber_mirror_backend.py b/zulip/integrations/jabber/jabber_mirror_backend.py index e146d30..8442092 100755 --- a/zulip/integrations/jabber/jabber_mirror_backend.py +++ b/zulip/integrations/jabber/jabber_mirror_backend.py @@ -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