Fix some mistakes indicated by PyCharm's linting

This commit is contained in:
Ghostkeeper 2019-10-15 13:24:09 +02:00
parent 59fa73448a
commit c875252b53
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276
2 changed files with 5 additions and 3 deletions

View file

@ -328,7 +328,7 @@ class USBPrinterOutputDevice(PrinterOutputDevice):
def _setFirmwareName(self, name):
new_name = re.findall(r"FIRMWARE_NAME:(.*);", str(name))
if new_name:
if new_name:
self._firmware_name = new_name[0]
Logger.log("i", "USB output device Firmware name: %s", self._firmware_name)
else: