From 28d6af6237ddb16f5ca1e17866439e35ec07d911 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sun, 23 Nov 2014 15:42:41 +0100 Subject: [PATCH] Minor update --- lib/core/common.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/core/common.py b/lib/core/common.py index 35a14cc75..977b0c85c 100755 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -75,7 +75,6 @@ from lib.core.enums import PAYLOAD from lib.core.enums import REFLECTIVE_COUNTER from lib.core.enums import SORT_ORDER from lib.core.exception import SqlmapDataException -from lib.core.exception import SqlmapFilePathException from lib.core.exception import SqlmapGenericException from lib.core.exception import SqlmapNoneDataException from lib.core.exception import SqlmapMissingDependence @@ -997,7 +996,7 @@ def checkFile(filename): """ if filename is None or not os.path.isfile(filename): - raise SqlmapFilePathException("unable to read file '%s'" % filename) + raise SqlmapSystemException("unable to read file '%s'" % filename) def banner(): """ @@ -2820,7 +2819,7 @@ def openFile(filename, mode='r'): errMsg += "Please check %s permissions on a file " % ("write" if \ mode and ('w' in mode or 'a' in mode or '+' in mode) else "read") errMsg += "and that it's not locked by another process." - raise SqlmapFilePathException(errMsg) + raise SqlmapSystemException(errMsg) def decodeIntToUnicode(value): """