Spaces:
Running
Running
Commit
·
be63e0f
1
Parent(s):
78f61d6
Log full metagraph error
Browse files- src/chain_data.py +4 -2
src/chain_data.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
import os
|
|
|
2 |
from dataclasses import dataclass
|
3 |
from datetime import datetime, timedelta
|
4 |
from enum import Enum
|
@@ -213,6 +214,7 @@ def sync_metagraph():
|
|
213 |
print("Syncing commitments...")
|
214 |
last_commitment_sync = now
|
215 |
fetch_commitments(block)
|
216 |
-
except Exception
|
217 |
-
print(f"Error occurred while syncing metagraph
|
|
|
218 |
substrate = SubstrateInterface(substrate.url)
|
|
|
1 |
import os
|
2 |
+
import traceback
|
3 |
from dataclasses import dataclass
|
4 |
from datetime import datetime, timedelta
|
5 |
from enum import Enum
|
|
|
214 |
print("Syncing commitments...")
|
215 |
last_commitment_sync = now
|
216 |
fetch_commitments(block)
|
217 |
+
except Exception:
|
218 |
+
print(f"Error occurred while syncing metagraph")
|
219 |
+
traceback.print_exc()
|
220 |
substrate = SubstrateInterface(substrate.url)
|