[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    l10n-support/pology/pology
From:       Chusslove Illich <caslav.ilic () gmx ! net>
Date:       2017-05-26 8:08:13
Message-ID: E1dEAI9-0002uU-9p () code ! kde ! org
[Download RAW message or body]

SVN commit 1490388 by ilic:

Do not try to access .args on Exception catch


 M  +2 -2      getfunc.py  
 M  +1 -1      spell.py  


--- trunk/l10n-support/pology/pology/getfunc.py #1490387:1490388
@@ -226,7 +226,7 @@
                               "Cannot create hook by applying function "
                               "'%(func)s' to argument list %(args)s; "
                               "reported error:\n%(msg)s",
-                              func=fspec, args=repr(args), msg=e.args[0]),
+                              func=fspec, args=repr(args), msg=e),
                             abort)
 
     return call
@@ -329,7 +329,7 @@
                           "Evaluating function '%(func)s' "
                           "with argument list %(args)s failed; "
                           "reported error:\n%(msg)s",
-                          func=fspec, args=repr(args), msg=e.args[0]),
+                          func=fspec, args=repr(args), msg=e),
                           abort)
 
     return res
--- trunk/l10n-support/pology/pology/spell.py #1490387:1490388
@@ -338,7 +338,7 @@
             _("@info",
               "Cannot create composited spelling dictionary "
               "in current working directory:\n%(msg)s",
-              msg=e.args[0]))
+              msg=e))
 
     return tmpf.name, True
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic