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:
Kevin O'Connor 2019-06-06 10:22:14 -04:00
parent a541c2f60e
commit cacb6f4378
1 changed files with 2 additions and 1 deletions

View File

@ -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