From 15ddc3aa2e32187a2079d87f9e91fd2e6f03f60c Mon Sep 17 00:00:00 2001 From: Ian Cordasco Date: Sat, 13 May 2017 06:52:08 -0500 Subject: Handle missing default formatter In the event that we cannot load our plugins, we shouldn't raise a cryptic KeyError from our formatter. Closes #320 --- src/flake8/exceptions.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/flake8/exceptions.py') diff --git a/src/flake8/exceptions.py b/src/flake8/exceptions.py index cf8aae3..13e8996 100644 --- a/src/flake8/exceptions.py +++ b/src/flake8/exceptions.py @@ -13,6 +13,10 @@ class EarlyQuit(Flake8Exception): pass +class ExecutionError(Flake8Exception): + """Exception raised during execution of Flake8.""" + + class FailedToLoadPlugin(Flake8Exception): """Exception raised when a plugin fails to load.""" -- cgit v1.2.1