From a87ac2dec90633f2310941b0881613ec5f1ac6e8 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 7 Nov 2012 14:21:17 -0500 Subject: [PATCH] zephyr_mirror: Fix missing api key file error message. (imported from commit 3efe7fb8b2d593418c37dbab9389a8df9c27d003) --- api/bots/zephyr_mirror.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/api/bots/zephyr_mirror.py b/api/bots/zephyr_mirror.py index b479cfae2e..1204f2451d 100755 --- a/api/bots/zephyr_mirror.py +++ b/api/bots/zephyr_mirror.py @@ -605,9 +605,10 @@ if __name__ == "__main__": api_key = os.environ.get("HUMBUG_API_KEY") else: if not os.path.exists(options.api_key_file): - print textwrap.wrap("Could not find 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)) + print "\n".join(textwrap.wrap("""\ +Could not find 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) api_key = file(options.api_key_file).read().strip() # Store the API key in the environment so that our children