From 1553d4edd6c341fad88c146fedb42c3309f70a9a Mon Sep 17 00:00:00 2001 From: dbs Date: Sun, 5 Jul 2009 17:44:55 +0000 Subject: [PATCH] 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 --- build/i18n/scripts/db-seed-i18n.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(): -- 2.43.2