Commit b194b664 authored by Anael Beutot's avatar Anael Beutot
Browse files

Fix uncaught exceptions when unpickling plugins file

parent 28ef96ba
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -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():