Added diagnostic to debug log with suggestion to run calibre in Administrator mode (Windows) when unable to launch iTunes.

This commit is contained in:
GRiker 2012-12-12 04:09:04 -07:00
parent 92e06792f8
commit 45644d2583

View File

@ -2499,8 +2499,8 @@ class ITUNES(DriverBase):
self.iTunes = win32com.client.Dispatch("iTunes.Application") self.iTunes = win32com.client.Dispatch("iTunes.Application")
except: except:
self.iTunes = None self.iTunes = None
raise UserFeedback(' %s._launch_iTunes(): unable to find installed iTunes' raise OpenFeedback('Unable to launch iTunes.\n' +
% self.__class__.__name__, details=None, level=UserFeedback.WARN) 'Try launching calibre as Administrator')
if not DEBUG: if not DEBUG:
self.iTunes.Windows[0].Minimized = True self.iTunes.Windows[0].Minimized = True
@ -2508,8 +2508,7 @@ class ITUNES(DriverBase):
try: try:
# Pre-emptive test to confirm functional iTunes automation interface # Pre-emptive test to confirm functional iTunes automation interface
foo = self.iTunes.Version logger().info(" automation interface with iTunes %s established" % self.iTunes.Version)
foo
except: except:
self.iTunes = None self.iTunes = None
raise OpenFeedback('Unable to connect to iTunes.\n' + raise OpenFeedback('Unable to connect to iTunes.\n' +