Skip to content

Commit

Permalink
Fix logger.exception
Browse files Browse the repository at this point in the history
  • Loading branch information
merc1er committed Jun 25, 2023
1 parent 09a0169 commit bf102f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tipbot/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def withdraw(update, context: CallbackContext):
else:
tx_id = key.send(outputs)
except Exception as e:
logger.exception()
logger.exception(f"Transaction failed: {str(e)}")
return update.message.reply_text(
f"Transaction failed due to the following error: {e}"
)
Expand Down Expand Up @@ -226,7 +226,7 @@ def tip(update, context: CallbackContext, satoshi=False):
try:
key.send(outputs)
except Exception as e:
logger.exception()
logger.exception(f"Transaction failed: {str(e)}")
return update.message.reply_text(
f"Transaction failed due to the following error: {e}"
)
Expand Down

0 comments on commit bf102f8

Please sign in to comment.