Skip to content
Snippets Groups Projects
Commit b194b664 authored by Anael Beutot's avatar Anael Beutot
Browse files

Fix uncaught exceptions when unpickling plugins file

parent 28ef96ba
No related branches found
No related tags found
No related merge requests found
......@@ -243,7 +243,13 @@ class Handler(BasePlugin):
except EnvironmentError as exc:
logger.error('Cannot load previous plugins: %s (%s)',
exc.errno, exc.strerror)
except pickle.UnpicklingError as exc:
except (
EOFError,
AttributeError,
ImportError,
IndexError,
pickle.UnpicklingError,
) as exc:
logger.error('Cannot read file, bad format, %s', exc)
else:
def plugins_install():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment