mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix annoying device scanner traceback on shutdown
This commit is contained in:
parent
5b276ee524
commit
22e0bd2b91
@ -55,13 +55,11 @@ class DeviceScanner(object):
|
|||||||
return linux_scanner()
|
return linux_scanner()
|
||||||
|
|
||||||
def scan(self):
|
def scan(self):
|
||||||
try: # Windows WMI occassionally and temporarily barfs
|
try: # Windows WMI occasionally and temporarily barfs
|
||||||
self.devices = self.get_devices()
|
self.devices = self.get_devices()
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
if not iswindows:
|
if not iswindows and e:
|
||||||
raise e
|
raise e
|
||||||
import traceback
|
|
||||||
traceback.print_exc()
|
|
||||||
|
|
||||||
|
|
||||||
def is_device_connected(self, device):
|
def is_device_connected(self, device):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user