1
0
Fork 0
mirror of synced 2024-05-19 20:12:30 +12:00

Correct handling of no data returned

This commit is contained in:
phxntxm 2017-06-27 19:12:29 -05:00
parent 9b8e3f3875
commit a8b48bc718

View file

@ -34,8 +34,7 @@ class Picarto:
data = await utils.request(url)
if data is None:
await ctx.send("I couldn't connect to Picarto!")
return
return None
# Not everyone has all these settings, so use this as a way to print information if it does, otherwise ignore it
things_to_print = ['comissions', 'adult', 'followers', 'category', 'online']
@ -58,7 +57,6 @@ class Picarto:
return embed
def channel_online(self, channel):
# Channel is the name we are checking against that
# This creates a list of all users that match this channel name (should only ever be 1)