aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcopy-diff.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/copy-diff.py b/copy-diff.py
index 3890e27..076f2da 100755
--- a/copy-diff.py
+++ b/copy-diff.py
@@ -45,7 +45,7 @@ def copyfile(src, dest):
if not os.path.exists(destdir):
try:
os.makedirs(destdir)
- except os.error as e:
+ except os.error, e:
raise ValueError('Unable to create directory ' + destdir)
elif not os.path.isdir(destdir):
raise ValueError(destdir + ' is not a directory')
@@ -68,7 +68,7 @@ def main():
else:
try:
copyfile(srcfile, destfile)
- except ValueError as e:
+ except ValueError, e:
print >> sys.stderr, 'ERROR: ', e
sys.exit(1)