From 8b29fb3f3e29a7a9c51e1b05a9aa72605f9297d8 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 8 Dec 2013 20:34:05 -0800 Subject: [PATCH] gallery.py: Use Python-3-compatible exception syntax Avoid: File "/home/wking/bin/gallery.py", line 120 except OSError, e: ^ SyntaxError: invalid syntax --- posts/gallery/gallery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posts/gallery/gallery.py b/posts/gallery/gallery.py index baacbd8..1a3c958 100755 --- a/posts/gallery/gallery.py +++ b/posts/gallery/gallery.py @@ -114,7 +114,7 @@ def invoke(args, stdin=None, stdout=_subprocess.PIPE, stderr=_subprocess.PIPE, try : q = _subprocess.Popen(args, stdin=_subprocess.PIPE, stdout=stdout, stderr=stderr, cwd=cwd) - except OSError, e: + except OSError as e: raise CommandError(args, status=e.args[0], stderr=e) stdout,stderr = q.communicate(input=stdin) status = q.wait() -- 2.26.2