Skip to content

Commit

Permalink
Add exception log
Browse files Browse the repository at this point in the history
  • Loading branch information
yukonet committed Jan 22, 2024
1 parent a93e3af commit 5f624d0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,8 +492,9 @@ def drain_account(self, account_address, destination):
return False
try:
response = xrpl.transaction.submit_and_wait(payment, self.client, sending_wallet)
except xrpl.transaction.XRPLReliableSubmissionException as e:
response = f"Submit failed: {e}"
except Exception as e:
response = f"Submit failed: {e}"
logger.warning(e)
logger.warning(response)
drain_results.append({
"dest": destination,
Expand Down

0 comments on commit 5f624d0

Please sign in to comment.