From: dbs Date: Sun, 5 Jul 2009 17:44:55 +0000 (+0000) Subject: Unbelievably, not all systems have Python 2.6 yet! X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=1553d4edd6c341fad88c146fedb42c3309f70a9a;p=evergreen%2Ftadl.git Unbelievably, not all systems have Python 2.6 yet! Use the exception handling method supported by previous Python versions git-svn-id: svn://svn.open-ils.org/ILS/trunk@13503 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/build/i18n/scripts/db-seed-i18n.py b/build/i18n/scripts/db-seed-i18n.py index 82df1349d9..fc7b8b6f7e 100755 --- a/build/i18n/scripts/db-seed-i18n.py +++ b/build/i18n/scripts/db-seed-i18n.py @@ -89,7 +89,7 @@ class SQL(basel10n.BaseL10N): poe.occurrences = [(os.path.basename(source), num)] poe.msgid = msgid serts[msgid] = poe - except Exception as exc: + except Exception, exc: print "Error in line %d of SQL source file: %s" % (num, exc) for poe in serts.values():