Unbelievably, not all systems have Python 2.6 yet!
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 5 Jul 2009 17:44:55 +0000 (17:44 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 5 Jul 2009 17:44:55 +0000 (17:44 +0000)
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

index 82df134..fc7b8b6 100755 (executable)
@@ -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():