-#!/usr/bin/python3
+#!/usr/bin/python
import sys, os, getopt
import socket
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"):