uilib.py
branchstable
changeset 7815 2a164a9cf81c
parent 7662 3217298823c1
child 7879 9aae456abab5
--- a/uilib.py	Tue Sep 20 15:14:04 2011 +0200
+++ b/uilib.py	Wed Sep 21 17:38:00 2011 +0200
@@ -406,10 +406,10 @@
 def exc_message(ex, encoding):
     try:
         return unicode(ex)
-    except:
+    except Exception:
         try:
             return unicode(str(ex), encoding, 'replace')
-        except:
+        except Exception:
             return unicode(repr(ex), encoding, 'replace')
 
 
@@ -423,7 +423,7 @@
     res.append(u'\n')
     try:
         res.append(u'\t Error: %s\n' % exception)
-    except:
+    except Exception:
         pass
     return u'\n'.join(res)