mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 23:46:22 -06:00
fixed exceptions caused by disconnecting printer
This commit is contained in:
parent
352d8658aa
commit
c0d39ff287
2 changed files with 5 additions and 4 deletions
|
@ -338,8 +338,8 @@ class PrinterConnection(SignalEmitter):
|
|||
try:
|
||||
ret = self._serial.readline()
|
||||
except:
|
||||
self._log("Unexpected error while reading serial port.")
|
||||
self._errorValue = getExceptionString()
|
||||
Logger.log('e',"Unexpected error while reading serial port.")
|
||||
#self._errorValue = getExceptionString()
|
||||
self.close()
|
||||
return None
|
||||
#if ret == '':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue