Skip to content

Fix bare except: replace with except Exception: in test fixtures - #8370

Open
koteshyelamati wants to merge 1 commit into
pymc-devs:mainfrom
koteshyelamati:main
Open

Fix bare except: replace with except Exception: in test fixtures#8370
koteshyelamati wants to merge 1 commit into
pymc-devs:mainfrom
koteshyelamati:main

Conversation

@koteshyelamati

Copy link
Copy Markdown

Replace bare except: with except Exception: in tests/backends/fixtures.py.

The bare except: clause guards cls.load_func(cls.name) during test setup. Using except Exception: is more precise — it still catches all normal errors while allowing SystemExit and KeyboardInterrupt to propagate as intended.

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 pymc | 🛠️ Build #33657785 | 📁 Comparing d503f73 against latest (91157fd)

  🔍 Preview build  

1 file changed
± glossary.html

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