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
raise causes control flow to be disrupted, as it will exit the block. it is recommended to check other conditions using another if statement. Not preferred: ```python def check_magic_generator(attribute): magic = get_magic_number(attribute) if magic < 0: raise ValueError(f"{attribute} looks invalid") elif magic > 100 raise ValueError(f"{attribute} is very magical") else: …
Occurrences
There is 1 occurrence of this issue in the repository.
Description
raise
causes control flow to be disrupted, as it will exit the block. it is recommended to check other conditions using anotherif
statement. Not preferred: ```python def check_magic_generator(attribute): magic = get_magic_number(attribute) if magic < 0: raise ValueError(f"{attribute} looks invalid") elif magic > 100 raise ValueError(f"{attribute} is very magical") else: …Occurrences
There is 1 occurrence of this issue in the repository.
See all occurrences on DeepSource → deepsource.io/gh/XenonTheInertG/Rec-Boot-Bot/issue/PYL-R1720/occurrences/
The text was updated successfully, but these errors were encountered: