From db39dc32fc2c131e8d98541e057577ad877eb654 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 9 Dec 2010 00:59:39 +0000 Subject: [PATCH] minor update --- lib/core/target.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/target.py b/lib/core/target.py index 8788d4b20..955e00e0a 100644 --- a/lib/core/target.py +++ b/lib/core/target.py @@ -235,7 +235,7 @@ def __createTargetDirs(): if not os.path.isdir(paths.SQLMAP_OUTPUT_PATH): try: os.makedirs(paths.SQLMAP_OUTPUT_PATH, 0755) - except: + except OSError: tempDir = tempfile.mkdtemp(prefix='output') warnMsg = "unable to create default root output directory at " warnMsg += "'%s'. using temporary directory '%s' instead" % (paths.SQLMAP_OUTPUT_PATH, tempDir) @@ -248,7 +248,7 @@ def __createTargetDirs(): if not os.path.isdir(conf.outputPath): try: os.makedirs(conf.outputPath, 0755) - except: + except OSError: tempDir = tempfile.mkdtemp(prefix='output') warnMsg = "unable to create output directory '%s'. " % conf.outputPath warnMsg += "using temporary directory '%s' instead" % tempDir