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.
This commit is contained in:
Robert Hönig 2018-01-04 16:16:53 +01:00 committed by showell
parent f6f09202ac
commit eb02e08fb7

View file

@ -2,11 +2,7 @@
import logging import logging
import ssl import ssl
import sys import sys
try: import requests
import requests
except ImportError as e:
logging.error("Dependency missing!!\n{}".format(e))
sys.exit(0)
from typing import Any, Dict from typing import Any, Dict