zulip_trello.py: Print error if requests isn't installed.

This commit is contained in:
Eeshan Garg 2018-09-22 16:55:39 -02:30
parent 71a15bd89e
commit 6e443b6d23

View file

@ -9,7 +9,13 @@ from __future__ import print_function
import sys
import argparse
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