Modify

Opened 8 years ago

Closed 4 years ago

#4554 closed defect (wontfix)

NameError (undefined Error class): IntegrityError

Reported by: tuebernickel@… 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)

Change History (1)

comment:1 Changed 4 years ago by Ryan J Ollos

Resolution: wontfix
Status: newclosed

This plugin is deprecated. See the TracMigratePlugin.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain takayama.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.