summaryrefslogtreecommitdiff
path: root/gbp/tmpfile.py
diff options
context:
space:
mode:
Diffstat (limited to 'gbp/tmpfile.py')
-rw-r--r--gbp/tmpfile.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/gbp/tmpfile.py b/gbp/tmpfile.py
index e1ad3084..9435a810 100644
--- a/gbp/tmpfile.py
+++ b/gbp/tmpfile.py
@@ -26,13 +26,13 @@ def mkdtemp(dir, **kwargs):
try:
if not os.path.exists(dir):
os.makedirs(dir)
- except OSError as (dummy_e, msg):
- raise GbpError, "Unable to create dir %s (%s)" % (dir, msg)
+ except OSError as msg:
+ raise GbpError("Unable to create dir %s (%s)" % (dir, msg))
try:
return os.path.abspath(tempfile.mkdtemp(dir=dir, **kwargs))
- except OSError as (dummy_e, msg):
- raise GbpError, "Unable to create tmpdir under %s (%s)" % (dir, msg)
+ except OSError as msg:
+ raise GbpError("Unable to create tmpdir under %s (%s)" % (dir, msg))
# vim:et:ts=4:sw=4:et:sts=4:ai:set list listchars=tab\:»·,trail\:·: