Closed deepsource-autofix[bot] closed 9 months ago
raise causes control flow to be disrupted, as it will exit the block. It is recommended to check other conditions using another if statement, and get rid of else statements as they are unnecessary.
raise
if
else
raise
causes control flow to be disrupted, as it will exit the block. It is recommended to check other conditions using anotherif
statement, and get rid ofelse
statements as they are unnecessary.