Skip to content

Fix bare except clauses with specific exception types in plugins/manager.py - #1135

Open
koteshyelamati wants to merge 1 commit into
nose-devs:masterfrom
koteshyelamati:master
Open

Fix bare except clauses with specific exception types in plugins/manager.py#1135
koteshyelamati wants to merge 1 commit into
nose-devs:masterfrom
koteshyelamati:master

Conversation

@koteshyelamati

Copy link
Copy Markdown

Replace bare except: clauses with specific exception types in nose/plugins/manager.py.

  • Lines 64, 68: except:except ImportError: for Python 2/3 compatibility imports (cPickle, cStringIO)
  • Line 158: except:except Exception: for plugin iteration errors (after explicit KeyboardInterrupt/SystemExit handler)

Bare except: clauses catch 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