recast-hep / recast-atlas

CLI for ATLAS RECAST contributors
https://recast.docs.cern.ch/
Apache License 2.0
5 stars 5 forks source link

Don't continue to execute after an `ImportError` #161

Open matthewfeickert opened 1 month ago

matthewfeickert commented 1 month ago

This is an antipattern, by the way. The Python core devs specifically say it’s invalid to continue executing after an ImportError. (In the core.py podcast) — @henryiii

https://github.com/recast-hep/recast-atlas/blob/11af091e2d5651b33ba234e55e48cd322756597a/src/recastatlas/backends/__init__.py#L16-L43

So need to find a better way to discover what execution backends are available for use.