mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 01:16:19 +00:00
zephyr_mirror: Fix missing api key file error message.
(imported from commit 3efe7fb8b2d593418c37dbab9389a8df9c27d003)
This commit is contained in:
@@ -605,9 +605,10 @@ if __name__ == "__main__":
|
|||||||
api_key = os.environ.get("HUMBUG_API_KEY")
|
api_key = os.environ.get("HUMBUG_API_KEY")
|
||||||
else:
|
else:
|
||||||
if not os.path.exists(options.api_key_file):
|
if not os.path.exists(options.api_key_file):
|
||||||
print textwrap.wrap("Could not find API key file. " +
|
print "\n".join(textwrap.wrap("""\
|
||||||
"You need to either place your api key file at %s, " +
|
Could not find API key file.
|
||||||
"or specify the --api-key-file option." % (options.api_key_file))
|
You need to either place your api key file at %s,
|
||||||
|
or specify the --api-key-file option.""" % (options.api_key_file,)))
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
api_key = file(options.api_key_file).read().strip()
|
api_key = file(options.api_key_file).read().strip()
|
||||||
# Store the API key in the environment so that our children
|
# Store the API key in the environment so that our children
|
||||||
|
|||||||
Reference in New Issue
Block a user