From b4f1e449578bc47d8b6684dff60194c693a7de6b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 29 Jan 2009 15:23:09 -0800 Subject: [PATCH] IGN:... --- src/calibre/__init__.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/calibre/__init__.py b/src/calibre/__init__.py index 34ebeefccf..0828c15b98 100644 --- a/src/calibre/__init__.py +++ b/src/calibre/__init__.py @@ -427,20 +427,15 @@ if isosx: try: if not os.path.exists(fdir): os.makedirs(fdir) - except: - pass - else: if not os.path.exists(os.path.join(fdir, 'LiberationSans_Regular.ttf')): from calibre.ebooks.lrf.fonts.liberation import __all__ as fonts for font in fonts: l = {} exec 'from calibre.ebooks.lrf.fonts.liberation.'+font+' import font_data' in l - try: - open(os.path.join(fdir, font+'.ttf'), 'wb').write(l['font_data']) - except: - import traceback - traceback.print_exc() - break + open(os.path.join(fdir, font+'.ttf'), 'wb').write(l['font_data']) + except: + import traceback + traceback.print_exc() # Migrate from QSettings based config system from calibre.utils.config import migrate