From 3278370ed654ca95286935928c951019bb2b1b55 Mon Sep 17 00:00:00 2001 From: John Schember Date: Thu, 10 Feb 2011 07:09:28 -0500 Subject: [PATCH] Add try block around APNX writing. --- src/calibre/devices/kindle/driver.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/calibre/devices/kindle/driver.py b/src/calibre/devices/kindle/driver.py index c33833cec4..615d786adc 100644 --- a/src/calibre/devices/kindle/driver.py +++ b/src/calibre/devices/kindle/driver.py @@ -218,7 +218,10 @@ class KINDLE2(KINDLE): apnx_path = '%s.apnx' % os.path.join(path, filename) apnx_builder = APNXBuilder() - apnx_builder.write_apnx(filepath, apnx_path) + try: + apnx_builder.write_apnx(filepath, apnx_path) + except: + pass class KINDLE_DX(KINDLE2):