From e718272e713aac8aa965ba2cb144e13ac9ed0b68 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Mon, 14 Jan 2019 21:00:50 +0000 Subject: [PATCH] Applied a patch from dkg@fifthhorseman.net: py3 compatibility: Use modern form of exception handling - Legacy-Id: 15890 --- ietf/utils/draft.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ietf/utils/draft.py b/ietf/utils/draft.py index c4362e5fa..cfea83f2e 100755 --- a/ietf/utils/draft.py +++ b/ietf/utils/draft.py @@ -1325,8 +1325,8 @@ def _main(outfile=sys.stdout): try: opts, files = getopt.gnu_getopt(sys.argv[1:], "dhatTv", ["debug", "getauthors", "attribs", "attributes", "help", "timestamp", "notimestamp", "trace", "version",]) - except Exception, e: - print "%s: %s" % (program, e) + except Exception as e: + print("%s: %s" % (program, e)) sys.exit(1) # parse options @@ -1396,7 +1396,7 @@ if __name__ == "__main__": _main() except KeyboardInterrupt: raise - except Exception, e: + except Exception as e: if opt_debug: raise else: