From eb02e08fb7b190b47f65f5759588e05225a1c25e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20H=C3=B6nig?= Date: Thu, 4 Jan 2018 16:16:53 +0100 Subject: [PATCH] yoda bot: Just import the requests module. This removes the unconventional check for the existence of the requests module in the yoda bot to bring it in line with other bots. --- zulip_bots/zulip_bots/bots/yoda/yoda.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/zulip_bots/zulip_bots/bots/yoda/yoda.py b/zulip_bots/zulip_bots/bots/yoda/yoda.py index b330b70..d5fd9aa 100644 --- a/zulip_bots/zulip_bots/bots/yoda/yoda.py +++ b/zulip_bots/zulip_bots/bots/yoda/yoda.py @@ -2,11 +2,7 @@ import logging import ssl import sys -try: - import requests -except ImportError as e: - logging.error("Dependency missing!!\n{}".format(e)) - sys.exit(0) +import requests from typing import Any, Dict