Comments
Patch
@@ -103,6 +103,18 @@
__bytes__ = _tobytes
+class UnknownCommand(Exception):
+ """Exception raised if command is not in the command table."""
+
+ __bytes__ = _tobytes
+
+
+class AmbiguousCommand(Exception):
+ """Exception raised if command shortcut matches more than one command."""
+
+ __bytes__ = _tobytes
+
+
class InterventionRequired(Hint, Exception):
"""Exception raised when a command requires human intervention."""
@@ -290,18 +302,6 @@
__bytes__ = _tobytes
-class UnknownCommand(Exception):
- """Exception raised if command is not in the command table."""
-
- __bytes__ = _tobytes
-
-
-class AmbiguousCommand(Exception):
- """Exception raised if command shortcut matches more than one command."""
-
- __bytes__ = _tobytes
-
-
# derived from KeyboardInterrupt to simplify some breakout code
class SignalInterrupt(KeyboardInterrupt):
"""Exception raised on SIGTERM and SIGHUP."""