Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backend/consensus/worker_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ def health_check():
"cpu_percent": round(process.cpu_percent(), 2),
"memory_percent": round(process.memory_percent(), 2),
}
except:
except (psutil.Error, OSError):
pass

# Probe local GenVM manager responsiveness.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def transform(value):
if isinstance(value, str):
try:
return json.loads(value)
except:
except (json.JSONDecodeError, TypeError):
print(f"Failed to parse JSON: {value}. Removing configuration.")
return {}
print(f"Unexpected type: {type(value)}. Removing configuration.")
Expand Down
2 changes: 1 addition & 1 deletion backend/database_handler/transactions_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ def get_transaction_count(self, address: str) -> int:
# Normalize address to checksum format
try:
checksum_address = self.web3.to_checksum_address(address)
except:
except (ValueError, TypeError):
checksum_address = address

# Always use database count as source of truth
Expand Down
2 changes: 1 addition & 1 deletion backend/node/create_nodes/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def is_ollama_available() -> bool:
result = sock.connect_ex(("ollama", int(os.getenv("OLAMAPORT", "11434"))))
sock.close()
return result == 0
except:
except (OSError, ValueError):
return False


Expand Down
2 changes: 1 addition & 1 deletion backend/protocol_rpc/fastapi_endpoint_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ async def handle_method(
if db and hasattr(db, "rollback"):
try:
db.rollback()
except:
except Exception:
pass # Ignore rollback errors

raise
Expand Down