Skip to content

fix: replace bare except clauses with specific exception handling#221

Closed
Achieve3318 wants to merge 1 commit intoAffineFoundation:mainfrom
Achieve3318:fix/improve-exception-handling
Closed

fix: replace bare except clauses with specific exception handling#221
Achieve3318 wants to merge 1 commit intoAffineFoundation:mainfrom
Achieve3318:fix/improve-exception-handling

Conversation

@Achieve3318
Copy link
Copy Markdown

  • Replaced bare 'except:' with 'except Exception:' in subtensor.py
  • Replaced bare 'except:' with 'except Exception:' in api_client.py
  • Added proper error logging in subtensor.py for better debugging
  • Bare except clauses are considered anti-pattern as they catch system exits
  • Following PEP 8 guidelines for exception handling

- Replaced bare 'except:' with 'except Exception:' in subtensor.py
- Replaced bare 'except:' with 'except Exception:' in api_client.py
- Added proper error logging in subtensor.py for better debugging
- Bare except clauses are considered anti-pattern as they catch system exits
- Following PEP 8 guidelines for exception handling
@Tobias10086 Tobias10086 closed this Apr 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants