diff --git a/plugins/SolidView/SolidView.py b/plugins/SolidView/SolidView.py index 607455c7b3..8719e9c6e4 100644 --- a/plugins/SolidView/SolidView.py +++ b/plugins/SolidView/SolidView.py @@ -5,7 +5,6 @@ from UM.View.View import View from UM.Scene.Iterator.DepthFirstIterator import DepthFirstIterator from UM.Resources import Resources from UM.Application import Application -from UM.Math.Color import Color from UM.Preferences import Preferences from UM.View.Renderer import Renderer diff --git a/plugins/USBPrinting/USBPrinterManager.py b/plugins/USBPrinting/USBPrinterManager.py index fbcd6201d7..d6836468ab 100644 --- a/plugins/USBPrinting/USBPrinterManager.py +++ b/plugins/USBPrinting/USBPrinterManager.py @@ -4,8 +4,6 @@ from UM.Signal import Signal, SignalEmitter from . import PrinterConnection from UM.Application import Application -from UM.Scene.Iterator.DepthFirstIterator import DepthFirstIterator -from UM.Scene.SceneNode import SceneNode from UM.Resources import Resources from UM.Logger import Logger from UM.PluginRegistry import PluginRegistry @@ -20,7 +18,6 @@ import platform import glob import time import os.path -import sys from UM.Extension import Extension from PyQt5.QtQuick import QQuickView @@ -59,7 +56,7 @@ class USBPrinterManager(QObject, SignalEmitter, OutputDevicePlugin, Extension): @pyqtProperty(float, notify = progressChanged) def progress(self): progress = 0 - for printer_name, connection in self._printer_connections.items(): + for printer_name, connection in self._printer_connections.items(): # TODO: @UnusedVariable "printer_name" progress += connection.progress return progress / len(self._printer_connections) @@ -231,6 +228,7 @@ class USBPrinterManager(QObject, SignalEmitter, OutputDevicePlugin, Extension): base_list += [values[1]] i += 1 except Exception as e: + Logger.log("d", "USBPrinterManager.getSerialPortList: ", e) pass else: if only_list_usb: