-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wrap plugin construction in try/except: #82
Comments
in file > |
def build_plugins_list(config, resolution, cache):
IS this good? |
I think this is a bigger problem than I thought. What you propose will definitely work, but there's a bigger mess hiding in the Plugin class. Would you be interested in lookin into this? It's definitely more than a one-liner fix. When init'd, the plugin can (or should) throw all sorts of exceptions. I think it really needs some better error handling with the setters. It might make sense to build an error class called PluginError as a catch-all for some common exceptions. For example:
|
class PluginError(Exception): class Plugin: def build_plugins_list(config, resolution, cache):
|
Yeah, that would do the trick, but the changes need to be added into the Plugin library and then made so all the setters called in the class init ultimately throw a PluginError. Any chance you also work in Jupyter? I do most of my development in Jupyter to make it easier to test graphical output; it's easiest in the project workflow to update the .ipynb files and then produce the .py files from those. |
ok i will try to do that |
|
def setup_splash(config, resolution):
|
#152 closes this |
I'm surprised this hasn't crashed out already.
The text was updated successfully, but these errors were encountered: