Skip to content

Commit

Permalink
Use for else construct
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruwann committed Apr 15, 2022
1 parent c575eda commit c6a754a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion connexion/security/async_security_handler_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ async def wrapper(request):
except Exception as err:
errors.append(err)

if token_info is cls.no_value:
else:
if errors != []:
cls._raise_most_specific(errors)
else:
Expand Down
2 changes: 1 addition & 1 deletion connexion/security/security_handler_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ def wrapper(request):
except Exception as err:
errors.append(err)

if token_info is cls.no_value:
else:
if errors != []:
cls._raise_most_specific(errors)
else:
Expand Down

0 comments on commit c6a754a

Please sign in to comment.