@@ -337,7 +337,7 @@ def _parseBurpLog(content):
337337
338338 if not host :
339339 errMsg = "invalid format of a request file"
340- raise SqlmapSyntaxException , errMsg
340+ raise SqlmapSyntaxException ( errMsg )
341341
342342 if not url .startswith ("http" ):
343343 url = "%s://%s:%s%s" % (scheme or "http" , host , port or "80" , url )
@@ -402,7 +402,7 @@ def __contains__(self, name):
402402 errMsg = "something appears to be wrong with "
403403 errMsg += "the file '%s' ('%s'). Please make " % (paths .QUERIES_XML , getSafeExString (ex ))
404404 errMsg += "sure that you haven't made any changes to it"
405- raise SqlmapInstallationException , errMsg
405+ raise SqlmapInstallationException ( errMsg )
406406
407407 for node in tree .findall ("*" ):
408408 queries [node .attrib ['value' ]] = iterate (node )
@@ -1128,7 +1128,7 @@ def _setHTTPHandlers():
11281128 _ = urlparse .urlsplit (conf .proxy )
11291129 except Exception , ex :
11301130 errMsg = "invalid proxy address '%s' ('%s')" % (conf .proxy , getSafeExString (ex ))
1131- raise SqlmapSyntaxException , errMsg
1131+ raise SqlmapSyntaxException ( errMsg )
11321132
11331133 hostnamePort = _ .netloc .split (":" )
11341134
@@ -1255,7 +1255,7 @@ def _setSafeVisit():
12551255 kb .safeReq .post = None
12561256 else :
12571257 errMsg = "invalid format of a safe request file"
1258- raise SqlmapSyntaxException , errMsg
1258+ raise SqlmapSyntaxException ( errMsg )
12591259 else :
12601260 if not re .search (r"\Ahttp[s]*://" , conf .safeUrl ):
12611261 if ":443/" in conf .safeUrl :
@@ -1580,7 +1580,7 @@ def _createTemporaryDirectory():
15801580 except (OSError , IOError ), ex :
15811581 errMsg = "there has been a problem while accessing "
15821582 errMsg += "temporary directory location(s) ('%s')" % getSafeExString (ex )
1583- raise SqlmapSystemException , errMsg
1583+ raise SqlmapSystemException ( errMsg )
15841584 else :
15851585 try :
15861586 if not os .path .isdir (tempfile .gettempdir ()):
@@ -1607,7 +1607,7 @@ def _createTemporaryDirectory():
16071607 except (OSError , IOError , WindowsError ), ex :
16081608 errMsg = "there has been a problem while setting "
16091609 errMsg += "temporary directory location ('%s')" % getSafeExString (ex )
1610- raise SqlmapSystemException , errMsg
1610+ raise SqlmapSystemException ( errMsg )
16111611
16121612def _cleanupOptions ():
16131613 """
0 commit comments