Pārlūkot izejas kodu

Do not catch generic exception (catch it above)

Alois Mahdal 11 gadus atpakaļ
vecāks
revīzija
7e5274a3dc
1 mainītis faili ar 0 papildinājumiem un 3 dzēšanām
  1. 0
    3
      lib/htlogr.py

+ 0
- 3
lib/htlogr.py Parādīt failu

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