From 6e443b6d23355630652236c708ecc1a79fce95c2 Mon Sep 17 00:00:00 2001 From: Eeshan Garg Date: Sat, 22 Sep 2018 16:55:39 -0230 Subject: [PATCH] zulip_trello.py: Print error if requests isn't installed. --- zulip/integrations/trello/zulip_trello.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/zulip/integrations/trello/zulip_trello.py b/zulip/integrations/trello/zulip_trello.py index 6808ff9..a8f6617 100755 --- a/zulip/integrations/trello/zulip_trello.py +++ b/zulip/integrations/trello/zulip_trello.py @@ -9,7 +9,13 @@ from __future__ import print_function import sys import argparse -import requests + +try: + import requests +except ImportError: + print("Error: Please install the python requests library before running this script:") + print("http://docs.python-requests.org/en/master/user/install/") + sys.exit(1) def get_model_id(options): """get_model_id