araeyn commited on
Commit
457db31
·
verified ·
1 Parent(s): 556e7bd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,6 +1,7 @@
1
  import asyncio
2
  import json
3
  from websockets.server import serve
 
4
  import time
5
 
6
  print("-------")
@@ -48,8 +49,8 @@ async def echo(websocket):
48
  b.update({jm["token"]: []})
49
  b[jm["token"]].append(jm["data"])
50
  json.dump(b, open("b.json", "w"))
51
- except Exception as e:
52
- print(e)
53
  print(message)
54
  print(p)
55
  print(b)
 
1
  import asyncio
2
  import json
3
  from websockets.server import serve
4
+ import traceback
5
  import time
6
 
7
  print("-------")
 
49
  b.update({jm["token"]: []})
50
  b[jm["token"]].append(jm["data"])
51
  json.dump(b, open("b.json", "w"))
52
+ except Exception:
53
+ traceback.print_exc()
54
  print(message)
55
  print(p)
56
  print(b)