handle no tags at all without crashing

(hopefully)
This commit is contained in:
jan6 2021-11-07 12:27:04 +02:00
parent cc5f92ecbf
commit f62f3d6e68
1 changed files with 1 additions and 1 deletions

View File

@ -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