Skip to content

fix: type annotations and exception handling#3817

Open
LincolnBurrows2017 wants to merge 1 commit intolm-sys:mainfrom
LincolnBurrows2017:fix/type-annotations-and-exception-handling
Open

fix: type annotations and exception handling#3817
LincolnBurrows2017 wants to merge 1 commit intolm-sys:mainfrom
LincolnBurrows2017:fix/type-annotations-and-exception-handling

Conversation

@LincolnBurrows2017
Copy link

Fixed 5 issues:

  1. is_blocking field type: str -> bool (2 files)
  2. Bare except clauses -> specific exception types (3 files)

- Fix is_blocking field type from str to bool in ModelPermission
  (both api_protocol.py and openai_api_protocol.py)
- Replace bare except: clauses with specific exception types
  in api_provider.py, monitor.py, and utils.py

These fixes improve type safety and prevent catching
SystemExit/KeyboardInterrupt exceptions.
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