mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-12 22:49:53 -05:00
test
This commit is contained in:
parent
9843fd55e3
commit
d7fb2bab9f
@ -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':
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user