Skip to content

Commit

Permalink
Python <3.12 compability
Browse files Browse the repository at this point in the history
Fix #49
  • Loading branch information
HarukaMa authored Nov 10, 2024
1 parent 65306d0 commit 0164498
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/light_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ async def parse_message(self, frame: Frame):
if time.time() - self.last_rest_query > 300:
self.last_rest_query = time.time()
try:
r = await cast(aiohttp.ClientSession, self.aiohttp_session).get(f"/{os.environ.get("NETWORK", "unknown")}/peers/all/metrics")
r = await cast(aiohttp.ClientSession, self.aiohttp_session).get(f"/{os.environ.get('NETWORK', 'unknown')}/peers/all/metrics")
if r.ok:
data = await r.json()
for p in data:
Expand Down

0 comments on commit 0164498

Please sign in to comment.