summaryrefslogtreecommitdiff
path: root/src/flake8/exceptions.py
diff options
context:
space:
mode:
authorIan Cordasco <graffatcolmingov@gmail.com>2016-06-26 15:08:58 -0500
committerIan Cordasco <graffatcolmingov@gmail.com>2016-06-26 15:08:58 -0500
commitb194717d1a35862961efed0f4411d774024ec75d (patch)
tree339573b4af0cb84219869756ca5e4bb22cb227ea /src/flake8/exceptions.py
parent790549fd25eb50ceed852ce3436e3afc111bbf37 (diff)
downloadflake8-b194717d1a35862961efed0f4411d774024ec75d.tar.gz
Search current directory if no paths are specified
This fixes a regression in behaviour from 2.x to 3. Closes #150
Diffstat (limited to 'src/flake8/exceptions.py')
-rw-r--r--src/flake8/exceptions.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/flake8/exceptions.py b/src/flake8/exceptions.py
index 5ff55a2..2b03795 100644
--- a/src/flake8/exceptions.py
+++ b/src/flake8/exceptions.py
@@ -7,6 +7,12 @@ class Flake8Exception(Exception):
pass
+class EarlyQuit(Flake8Exception):
+ """Except raised when encountering a KeyboardInterrupt."""
+
+ pass
+
+
class FailedToLoadPlugin(Flake8Exception):
"""Exception raised when a plugin fails to load."""