Skip to content

Fix bare except clauses with specific exception types#347

Open
koteshyelamati wants to merge 3 commits into
clips:masterfrom
koteshyelamati:master
Open

Fix bare except clauses with specific exception types#347
koteshyelamati wants to merge 3 commits into
clips:masterfrom
koteshyelamati:master

Conversation

@koteshyelamati

Copy link
Copy Markdown

Replace bare except: clauses with specific exception types across multiple modules.

  • pattern/web/__init__.py: except:except ImportError: for cache and imap imports; except Exception: for os.path.realpath
  • pattern/text/en/__init__.py: except:except Exception: for os.path.realpath
  • pattern/text/de/__init__.py: except:except Exception: for os.path.realpath

Bare except: catches BaseException including SystemExit and KeyboardInterrupt, which can interfere with normal process termination.

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