Return None if channel has not been found within the cache

pull/8/head
sgoudham 4 years ago
parent f867315c4a
commit 83e4f42ab8

@ -88,7 +88,7 @@ def get_modlog_for_guild(guildid):
channel = modlogs[guildid] channel = modlogs[guildid]
if channel is not None: if channel is not None:
return channel return channel
return Exception return None
# Before initialising the cache. Store the prefixes from the database within the cache # Before initialising the cache. Store the prefixes from the database within the cache

Loading…
Cancel
Save