Skip to content

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

Open
Angel98518 wants to merge 1 commit intoAffineFoundation:mainfrom
Angel98518:fix/improve-exception-handling
Open

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

Conversation

@Angel98518
Copy link

  • 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
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.

1 participant