From 45644d2583267f7936ec9705cb668828d89a377c Mon Sep 17 00:00:00 2001 From: GRiker Date: Wed, 12 Dec 2012 04:09:04 -0700 Subject: [PATCH] Added diagnostic to debug log with suggestion to run calibre in Administrator mode (Windows) when unable to launch iTunes. --- src/calibre/devices/apple/driver.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/calibre/devices/apple/driver.py b/src/calibre/devices/apple/driver.py index 315c47c4ce..038728f0d3 100644 --- a/src/calibre/devices/apple/driver.py +++ b/src/calibre/devices/apple/driver.py @@ -2499,8 +2499,8 @@ class ITUNES(DriverBase): self.iTunes = win32com.client.Dispatch("iTunes.Application") except: self.iTunes = None - raise UserFeedback(' %s._launch_iTunes(): unable to find installed iTunes' - % self.__class__.__name__, details=None, level=UserFeedback.WARN) + raise OpenFeedback('Unable to launch iTunes.\n' + + 'Try launching calibre as Administrator') if not DEBUG: self.iTunes.Windows[0].Minimized = True @@ -2508,8 +2508,7 @@ class ITUNES(DriverBase): try: # Pre-emptive test to confirm functional iTunes automation interface - foo = self.iTunes.Version - foo + logger().info(" automation interface with iTunes %s established" % self.iTunes.Version) except: self.iTunes = None raise OpenFeedback('Unable to connect to iTunes.\n' +