mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
Fix annoying device scanner traceback on shutdown
This commit is contained in:
parent
5b276ee524
commit
22e0bd2b91
1 changed files with 2 additions and 4 deletions
|
|
@ -55,13 +55,11 @@ def get_devices(self):
|
|||
return linux_scanner()
|
||||
|
||||
def scan(self):
|
||||
try: # Windows WMI occassionally and temporarily barfs
|
||||
try: # Windows WMI occasionally and temporarily barfs
|
||||
self.devices = self.get_devices()
|
||||
except Exception, e:
|
||||
if not iswindows:
|
||||
if not iswindows and e:
|
||||
raise e
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
|
||||
|
||||
def is_device_connected(self, device):
|
||||
|
|
|
|||
Loading…
Reference in a new issue