diff --git a/stuff.py b/stuff.py index 120ff07..f74fd8c 100755 --- a/stuff.py +++ b/stuff.py @@ -139,7 +139,7 @@ def stuff(bot, sock): line.tags["account"] in admin_accounts or line.source in admin_users ) - except KeyError: + except (KeyError, TypeError): #either no account tag, or no tags at all is_adm = line.source in admin_users # update command module's info dynamically for line info