diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2020-08-16 14:08:38 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2020-08-16 14:10:54 -0400 |
commit | 9d9e5c7edc6d34ce25636d6174579fa28ee5e367 (patch) | |
tree | 406e4b2bfc46b3145a8cf9991ad0737e868ef969 /klippy/klippy.py | |
parent | fa83b1319ca36ba1b56b27d8d7331e97b6b55c54 (diff) | |
download | kutter-9d9e5c7edc6d34ce25636d6174579fa28ee5e367.tar.gz kutter-9d9e5c7edc6d34ce25636d6174579fa28ee5e367.tar.xz kutter-9d9e5c7edc6d34ce25636d6174579fa28ee5e367.zip |
klippy: Report "shutdown" category from get_state_message()
Reported by @Arksine.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/klippy.py')
-rw-r--r-- | klippy/klippy.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/klippy/klippy.py b/klippy/klippy.py index 838a43c0..6cac8099 100644 --- a/klippy/klippy.py +++ b/klippy/klippy.py @@ -70,6 +70,8 @@ class Printer: category = "ready" elif self.state_message == message_startup: category = "startup" + elif self.in_shutdown_state: + category = "shutdown" else: category = "error" return self.state_message, category |