ソースを参照

Do not catch generic exception (catch it above)

Alois Mahdal 11 年 前
コミット
7e5274a3dc
共有1 個のファイルを変更した0 個の追加3 個の削除を含む
  1. 0
    3
      lib/htlogr.py

+ 0
- 3
lib/htlogr.py ファイルの表示

66
         except httplib.BadStatusLine as e:
66
         except httplib.BadStatusLine as e:
67
             return_msg = ("httplib does not like this line:\n\n    %s"
67
             return_msg = ("httplib does not like this line:\n\n    %s"
68
                           % e.line)
68
                           % e.line)
69
-        except:
70
-            return_msg = ("something bad happened. We don't know what"
71
-                          " but we know it's bad")
72
         return return_msg
69
         return return_msg
73
 
70
 
74
     def data(self, data, tag=None, i=None):
71
     def data(self, data, tag=None, i=None):