fix: replace bare except with except Exception in tests/dev/plugins
Some checks failed
Cross-Node Transaction Testing / transaction-test (push) Successful in 19s
Deploy to Testnet / deploy-testnet (push) Successful in 1m10s
Multi-Node Stress Testing / stress-test (push) Successful in 2s
Node Failover Simulation / failover-test (push) Successful in 1s
Python Tests / test-python (push) Failing after 7s
Deploy to Testnet / notify-deployment (push) Successful in 1s
Some checks failed
Cross-Node Transaction Testing / transaction-test (push) Successful in 19s
Deploy to Testnet / deploy-testnet (push) Successful in 1m10s
Multi-Node Stress Testing / stress-test (push) Successful in 2s
Node Failover Simulation / failover-test (push) Successful in 1s
Python Tests / test-python (push) Failing after 7s
Deploy to Testnet / notify-deployment (push) Successful in 1s
- Fixed bare except clauses in dev/examples/wallet.py - Fixed bare except clauses in dev/gpu/gpu_exchange_status.py (2 clauses) - Fixed bare except clauses in dev/gpu/gpu_miner_host.py - Fixed bare except clauses in dev/onboarding/auto-onboard.py - Fixed bare except clauses in dev/onboarding/onboarding-monitor.py - Fixed bare except clauses in dev/scripts/dev_heartbeat.py - Fixed bare except clauses in tests/integration/test_blockchain_simple.py (3 clauses) - Fixed bare except clause in tests/integration/test_full_workflow.py - Fixed bare except clause in tests/load_test.py - Fixed bare except clause in tests/security/test_confidential_transactions.py - Fixed bare except clause in tests/verification/test_coordinator.py - All bare except clauses now use proper Exception handling - Addresses remaining ruff E722 warnings in non-critical code
This commit is contained in:
@@ -146,7 +146,7 @@ class OnboardingMonitor:
|
||||
}
|
||||
|
||||
return type_mapping.get(compute_type, 'unknown')
|
||||
except:
|
||||
except Exception:
|
||||
return 'unknown'
|
||||
|
||||
def calculate_metrics(self):
|
||||
|
||||
Reference in New Issue
Block a user