From a66b0c91bb25429b3bfdbc0473db8ca37ad4b314 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 19 Jan 2015 09:19:30 +0100 Subject: [PATCH] Patch for an Issue #1120 --- 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 7ddb2eab6..bd6379e14 100644 --- a/lib/core/target.py +++ b/lib/core/target.py @@ -595,7 +595,7 @@ def _createTargetDirs(): except (OSError, IOError), ex: try: tempDir = tempfile.mkdtemp(prefix="sqlmapoutput") - except IOError, _: + except Exception, _: errMsg = "unable to write to the temporary directory ('%s'). " % _ errMsg += "Please make sure that your disk is not full and " errMsg += "that you have sufficient write permissions to " @@ -617,7 +617,7 @@ def _createTargetDirs(): except (OSError, IOError), ex: try: tempDir = tempfile.mkdtemp(prefix="sqlmapoutput") - except IOError, _: + except Exception, _: errMsg = "unable to write to the temporary directory ('%s'). " % _ errMsg += "Please make sure that your disk is not full and " errMsg += "that you have sufficient write permissions to "