Skip to content

Commit

Permalink
fix(ruff): avoid 'except:'
Browse files Browse the repository at this point in the history
  • Loading branch information
Psycojoker committed Sep 25, 2024
1 parent 8c8f1e2 commit 0b678bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/aleph_client/commands/instance/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ async def fetch_node_list(self):
async def fetch_node_info(self, node: CRNInfo):
try:
crn_info = await fetch_crn_info(node.url)
except:
except Exception as e:
logger.debug(e)
return
if crn_info:
node.version = crn_info.get("version", "")
Expand Down

0 comments on commit 0b678bd

Please sign in to comment.