Minor refactor of exception to top of module
This commit is contained in:
parent
2ded469357
commit
f9a2f9f095
2 changed files with 15 additions and 11 deletions
|
|
@ -16,6 +16,13 @@ from evennia.utils.evtable import EvTable
|
|||
from evennia.utils.ansi import ANSIString
|
||||
|
||||
|
||||
class InterruptCommand(Exception):
|
||||
|
||||
"""Cleanly interrupt a command."""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
def _init_command(cls, **kwargs):
|
||||
"""
|
||||
Helper command.
|
||||
|
|
@ -666,10 +673,3 @@ Command {self} has no defined `func()` - showing on-command variables:
|
|||
if "mode" not in kwargs:
|
||||
kwargs["mode"] = "footer"
|
||||
return self._render_decoration(*args, **kwargs)
|
||||
|
||||
|
||||
class InterruptCommand(Exception):
|
||||
|
||||
"""Cleanly interrupt a command."""
|
||||
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue