diff --git a/lib/request/connect.py b/lib/request/connect.py index 008208adc..508d67482 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -399,7 +399,7 @@ class Connect: errMsg = "not authorized, try to provide right HTTP " errMsg += "authentication type and valid credentials (%d)" % code raise sqlmapConnectionException, errMsg - elif e.code == 404 + elif e.code == 404: if raise404: errMsg = "page not found (%d)" % code raise sqlmapConnectionException, errMsg