You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to wiretap a user before the FISA Court category is created, the program will return:
File "/home/ubuntu/Wiretapping-Bot/cogs/wiretappingmodule.py", line 25, in startWiretap
categoryid = get(guild.categories, name="FISA Court").id
AttributeError: 'NoneType' object has no attribute 'id'
This issue is caused by the fact that categoryid is assigned before the in-command check to verify if the category exists in the first place.
Line 25 needs to be moved down, which will most likely going to make line 31 redundant, so a minor refactor will be needed to both clean the code and correct this bug.
The text was updated successfully, but these errors were encountered:
When attempting to wiretap a user before the
FISA Court
category is created, the program will return:This issue is caused by the fact that
categoryid
is assigned before the in-command check to verify if the category exists in the first place.Line 25 needs to be moved down, which will most likely going to make line 31 redundant, so a minor refactor will be needed to both clean the code and correct this bug.
The text was updated successfully, but these errors were encountered: