klippy: Provide global access to a printer.command_error exception class
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
a541c2f60e
commit
cacb6f4378
|
@ -5,7 +5,7 @@
|
||||||
#
|
#
|
||||||
# This file may be distributed under the terms of the GNU GPLv3 license.
|
# This file may be distributed under the terms of the GNU GPLv3 license.
|
||||||
import sys, os, optparse, logging, time, threading, collections, importlib
|
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
|
import gcode, configfile, pins, heater, mcu, toolhead
|
||||||
|
|
||||||
message_ready = "Printer is ready"
|
message_ready = "Printer is ready"
|
||||||
|
@ -47,6 +47,7 @@ Printer is shutdown
|
||||||
|
|
||||||
class Printer:
|
class Printer:
|
||||||
config_error = configfile.error
|
config_error = configfile.error
|
||||||
|
command_error = homing.CommandError
|
||||||
def __init__(self, input_fd, bglogger, start_args):
|
def __init__(self, input_fd, bglogger, start_args):
|
||||||
self.bglogger = bglogger
|
self.bglogger = bglogger
|
||||||
self.start_args = start_args
|
self.start_args = start_args
|
||||||
|
|
Loading…
Reference in New Issue