From: Jan Rękorajski Date: Sat, 18 Oct 2014 18:37:23 +0000 (+0200) Subject: - avoid referencing possibly undefined variable X-Git-Tag: auto/th/calibre-2.5.0-1 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;ds=sidebyside;h=8deb663eb9cbafd0d29b9dd8f092ed2f6e358a5b;p=packages%2Fcalibre.git - avoid referencing possibly undefined variable --- diff --git a/calibre-locales.patch b/calibre-locales.patch index 4de67c3..698ac39 100644 --- a/calibre-locales.patch +++ b/calibre-locales.patch @@ -128,9 +128,9 @@ + if mpath is not None: + try: + buf = open(os.path.join(mpath, 'calibre.mo'), 'rb') ++ yield lang, GNUTranslations(buf) + except: + pass -+ yield lang, GNUTranslations(buf) lcdata = { u'abday': (u'Sun', u'Mon', u'Tue', u'Wed', u'Thu', u'Fri', u'Sat'),