Modify ↓
Opened 17 years ago
Closed 13 years ago
#4554 closed defect (wontfix)
NameError (undefined Error class): IntegrityError
| Reported by: | Owned by: | takayama | |
|---|---|---|---|
| Priority: | high | Component: | SqliteToMySqlScript |
| Severity: | major | Keywords: | |
| Cc: | Trac Release: | 0.11 |
Description
python trace
File "sqlite2mysql", line 96, in default_copy
except (ProgrammingError, IntegrityError):
NameError: global name 'IntegrityError' is not defined
solution
Index: sqlite2mysql
===================================================================
--- sqlite2mysql (Revision 5174)
+++ sqlite2mysql (working copy)
@@ -33,7 +33,7 @@
from trac.env import Environment
from trac.db import DatabaseManager
from optparse import OptionParser
-from MySQLdb import ProgrammingError
+from MySQLdb import ProgrammingError, IntegrityError
class TableMigration(object):
"""
Attachments (0)
Note: See
TracTickets for help on using
tickets.



This plugin is deprecated. See the TracMigratePlugin.