Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
| 52 |
-
|
| 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)
|