mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-11 16:57:51 -06:00
Removing unused imports, fixing a indent and adding more logging
* Added the logging here, because it was called "except Exception as e:", so "e" seems to be something relevant.
This commit is contained in:
parent
8197e84927
commit
148c13ac31
1 changed files with 3 additions and 3 deletions
|
@ -12,10 +12,8 @@ import os.path
|
||||||
|
|
||||||
from UM.Application import Application
|
from UM.Application import Application
|
||||||
from UM.Signal import Signal, SignalEmitter
|
from UM.Signal import Signal, SignalEmitter
|
||||||
from UM.Resources import Resources
|
|
||||||
from UM.Logger import Logger
|
from UM.Logger import Logger
|
||||||
from UM.OutputDevice.OutputDevice import OutputDevice
|
from UM.OutputDevice.OutputDevice import OutputDevice
|
||||||
from UM.OutputDevice import OutputDeviceError
|
|
||||||
from UM.PluginRegistry import PluginRegistry
|
from UM.PluginRegistry import PluginRegistry
|
||||||
|
|
||||||
from PyQt5.QtQuick import QQuickView
|
from PyQt5.QtQuick import QQuickView
|
||||||
|
@ -337,6 +335,7 @@ class PrinterConnection(OutputDevice, QObject, SignalEmitter):
|
||||||
try:
|
try:
|
||||||
self._connect_thread.join()
|
self._connect_thread.join()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Logger.log("d", "PrinterConnection.close: %s (expected)", e)
|
||||||
pass # This should work, but it does fail sometimes for some reason
|
pass # This should work, but it does fail sometimes for some reason
|
||||||
|
|
||||||
self._connect_thread = threading.Thread(target=self._connect)
|
self._connect_thread = threading.Thread(target=self._connect)
|
||||||
|
@ -374,7 +373,7 @@ class PrinterConnection(OutputDevice, QObject, SignalEmitter):
|
||||||
|
|
||||||
@pyqtSlot()
|
@pyqtSlot()
|
||||||
def homeHead(self):
|
def homeHead(self):
|
||||||
self._sendCommand("G28")
|
self._sendCommand("G28")
|
||||||
|
|
||||||
## Directly send the command, withouth checking connection state (eg; printing).
|
## Directly send the command, withouth checking connection state (eg; printing).
|
||||||
# \param cmd string with g-code
|
# \param cmd string with g-code
|
||||||
|
@ -457,6 +456,7 @@ class PrinterConnection(OutputDevice, QObject, SignalEmitter):
|
||||||
self._extruder_temperatures[index] = temperature
|
self._extruder_temperatures[index] = temperature
|
||||||
self.extruderTemperatureChanged.emit()
|
self.extruderTemperatureChanged.emit()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Logger.log("d", "PrinterConnection._setExtruderTemperature: ", e)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
## Private function to set the temperature of the bed.
|
## Private function to set the temperature of the bed.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue