From cacb6f437825b9bc75dd586e0209823b5415153d Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 6 Jun 2019 10:22:14 -0400 Subject: [PATCH] klippy: Provide global access to a printer.command_error exception class Signed-off-by: Kevin O'Connor --- klippy/klippy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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