diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-06-06 10:22:14 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-06-06 10:22:14 -0400 |
commit | cacb6f437825b9bc75dd586e0209823b5415153d (patch) | |
tree | 3957265f47fa85bd529723c37dde61a50e6c2f23 /klippy/klippy.py | |
parent | a541c2f60e3c123885b2768e7e8ffd906add1744 (diff) | |
download | kutter-cacb6f437825b9bc75dd586e0209823b5415153d.tar.gz kutter-cacb6f437825b9bc75dd586e0209823b5415153d.tar.xz kutter-cacb6f437825b9bc75dd586e0209823b5415153d.zip |
klippy: Provide global access to a printer.command_error exception class
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/klippy.py')
-rw-r--r-- | klippy/klippy.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/klippy/klippy.py b/klippy/klippy.py index aa8ab66a..65538aa9 100644 --- a/klippy/klippy.py +++ b/klippy/klippy.py @@ -5,7 +5,7 @@ # # This file may be distributed under the terms of the GNU GPLv3 license. import sys, os, optparse, logging, time, threading, collections, importlib -import util, reactor, queuelogger, msgproto +import util, reactor, queuelogger, msgproto, homing import gcode, configfile, pins, heater, mcu, toolhead message_ready = "Printer is ready" @@ -47,6 +47,7 @@ Printer is shutdown class Printer: config_error = configfile.error + command_error = homing.CommandError def __init__(self, input_fd, bglogger, start_args): self.bglogger = bglogger self.start_args = start_args |