X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=python%2Fscgi-wsgi;h=9befb255c6a5a2d2b5353f4753007fd0d94f2e72;hb=55fa3f634594cedabf75182bd6404463c091ff63;hp=5ffcf6e0b13b5eb71d86c9d1705649be557cf8c2;hpb=075a379e5dfba9584cc5f3b473ae343628fc160d;p=ashd.git diff --git a/python/scgi-wsgi b/python/scgi-wsgi index 5ffcf6e..9befb25 100755 --- a/python/scgi-wsgi +++ b/python/scgi-wsgi @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 import sys, os, getopt import socket @@ -41,8 +41,8 @@ if sk is None: try: handlermod = __import__(args[0], fromlist = ["dummy"]) -except ImportError, exc: - sys.stderr.write("scgi-wsgi: handler %s not found: %s\n" % (args[0], exc.message)) +except ImportError as exc: + sys.stderr.write("scgi-wsgi: handler %s not found: %s\n" % (args[0], exc.args[0])) sys.exit(1) if not modwsgi_compat: if not hasattr(handlermod, "wmain"):