Skip to content

Commit

Permalink
Bot: dispatcher: fix spacing
Browse files Browse the repository at this point in the history
Change-Id: I10b034a9eb3d71cafc59fb37a9aacd8773608855
  • Loading branch information
adekmaulana committed Jul 18, 2021
1 parent 2fd4020 commit 796ac4b
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions bot/core/command_dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,17 +133,17 @@ async def on_command(

# Check credentials
if cmd.plugin.name == "GoogleDrive" and cmd.name not in {"gdclear", "gdreset"}:
try:
await cmd.plugin.check_credentials(ctx)
except Exception as e: # skipcq: PYL-W0703
constructor = CommandInvokeError(
f"raised from {type(e).__name__}: {str(e)}"
).with_traceback(e.__traceback__)
cmd.plugin.log.error("Error in credentials checker", exc_info=constructor)
return
if not cmd.plugin.credentials:
return
try:
await cmd.plugin.check_credentials(ctx)
except Exception as e: # skipcq: PYL-W0703
constructor = CommandInvokeError(
f"raised from {type(e).__name__}: {str(e)}"
).with_traceback(e.__traceback__)
cmd.plugin.log.error("Error in credentials checker", exc_info=constructor)
return

if not cmd.plugin.credentials:
return

# Invoke command function
try:
Expand Down

0 comments on commit 796ac4b

Please sign in to comment.