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