fix: resolve syntax errors in scan-skipped files
All checks were successful
API Endpoint Tests / test-api-endpoints (push) Successful in 2m12s
CLI Tests / test-cli (push) Successful in 2m58s
Integration Tests / test-service-integration (push) Successful in 2m18s
Python Tests / test-python (push) Successful in 3m6s
Security Scanning / security-scan (push) Successful in 1m7s

- Fix malformed f-strings in agent communication SDK
- Repair pricing strategy delimiters and optimizer blocks
- Normalize FastAPI session dependency signatures in routers
- Fix incomplete constructor, indentation, and empty exception blocks
- Restore syntax validity for files previously skipped by Bandit
This commit is contained in:
aitbc
2026-04-18 10:55:25 +02:00
parent ef91f4e773
commit 40698f91fd
14 changed files with 172 additions and 170 deletions

View File

@@ -424,15 +424,14 @@ def main():
# Wait for coordinator
if not wait_for_coordinator():
# Registration bypassed for testing
session_token = "bypass_token"
# # sys.exit(1)
logger.error("Coordinator not available")
return
# Register with coordinator
session_token = register_miner()
if not session_token:
# logger.error("Failed to register, exiting")
# sys.exit(1)
logger.error("Failed to register, exiting")
return
logger.info("Miner registered successfully, starting main loop...")