1
0
mirror of https://github.com/python-escpos/python-escpos synced 2025-12-02 09:43:30 +00:00

add function to print full images including resizing and fix band printing

This commit is contained in:
Thomas van den Berg
2013-02-27 15:10:34 +01:00
committed by Patrick Kanzler
parent 1614298863
commit 598c893943
4 changed files with 55 additions and 1 deletions

View File

@@ -43,7 +43,7 @@ class Usb(Escpos):
""" Search device on USB tree and set it as escpos device """
self.device = usb.core.find(idVendor=self.idVendor, idProduct=self.idProduct)
if self.device is None:
print("Cable isn't plugged in")
raise USBNotFoundError("Device not found or cable not plugged in.")
check_driver = None