Explorar el Código

if filter()的判断在python3中返回为filter对象,即使为空,if判断也会判定为True

bobobo80 hace 9 años
padre
commit
a6d40f7970
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      Util/WebRequest.py

+ 1 - 0
Util/WebRequest.py

@@ -79,6 +79,7 @@ class WebRequest(object):
                         raise Exception
                         raise Exception
                 return html
                 return html
             except Exception as e:
             except Exception as e:
+                print(e)
                 retry_time -= 1
                 retry_time -= 1
                 if retry_time <= 0:
                 if retry_time <= 0:
                     return
                     return