This commit is contained in:
deathbybandaid 2019-09-23 10:50:42 -04:00
parent 9843fd55e3
commit d7fb2bab9f

View File

@ -13,6 +13,8 @@ from .Config import config as botconfig
from .Read import read as botread from .Read import read as botread
from .Commands import commands as botcommands from .Commands import commands as botcommands
from .Logs import logs
# TODO add a cache flush # TODO add a cache flush
@ -120,6 +122,7 @@ class Search():
data = requests.get(searchdict["searchurl"]) data = requests.get(searchdict["searchurl"])
data = json.loads(data.decode('utf-8')) data = json.loads(data.decode('utf-8'))
except Exception as e: except Exception as e:
logs.log(str(e), True)
data = e data = e
return None return None
if data['result_type'] == 'no_results': if data['result_type'] == 'no_results':