cilynx / pantomath

Pantomath knows about things
GNU General Public License v3.0
1 stars 0 forks source link

Handle scanner being busy #22

Open cilynx opened 2 years ago

cilynx commented 2 years ago
15:12:22: Debug: Config.Write(('/Scan/Source', 'ADF Duplex'))
Scan Source: ADF Duplex
15:12:22: Debug: Config.Read(('/Scan/Resolution',)) = 300
15:12:22: Debug: Config.Read(('/Scan/Source', 'ADF')) = ADF Duplex
Exception in thread Thread-2 (_scan_adf):
Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1009, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.10/threading.py", line 946, in run
    self._target(*self._args, **self._kwargs)
  File "/home/rcw/Repos/pantomath/src/scanner.py", line 145, in _scan_adf
    pages = list(self.device.multi_scan())
  File "/usr/lib/python3/dist-packages/sane.py", line 123, in __next__
    self.device.start()
  File "/usr/lib/python3/dist-packages/sane.py", line 273, in start
    self.dev.start()
_sane.error: Device busy