Skip to content

Commit

Permalink
print exception stack trace
Browse files Browse the repository at this point in the history
  • Loading branch information
siftal committed Aug 12, 2022
1 parent d43f14e commit 05491d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions consensus/receiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import hashlib
import shutil
import requests
import traceback
from arango import ArangoClient, errno
from web3 import Web3
from web3.middleware import geth_poa_middleware
Expand Down Expand Up @@ -145,6 +146,7 @@ def main():


def wait():
5 / 0
while True:
time.sleep(5)
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
Expand Down Expand Up @@ -180,4 +182,5 @@ def wait():
main()
except Exception as e:
print(f'Error: {e}')
print(f'Traceback: {traceback.format_exc()}')
time.sleep(10)

0 comments on commit 05491d4

Please sign in to comment.