diff options
Diffstat (limited to 'src/lib/Server/Admin/Reports.py')
-rw-r--r-- | src/lib/Server/Admin/Reports.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/Server/Admin/Reports.py b/src/lib/Server/Admin/Reports.py index b4c3b5fcd..3f25f11af 100644 --- a/src/lib/Server/Admin/Reports.py +++ b/src/lib/Server/Admin/Reports.py @@ -28,8 +28,9 @@ import django.core.management # FIXME - settings file uses a hardcoded path for /etc/bcfg2.conf try: import Bcfg2.Server.Reports.settings -except Exception, err: - sys.stderr.write("Failed to load configuration settings. %s\n" % err) +except Exception: + e = sys.exc_info()[1] + sys.stderr.write("Failed to load configuration settings. %s\n" % e) raise SystemExit(1) project_directory = os.path.dirname(Bcfg2.Server.Reports.settings.__file__) |