Modify

Opened 6 years ago

Closed 2 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 2 years ago by rjollos

  • Resolution set to wontfix
  • Status changed from new to closed

This plugin is deprecated. See the TracMigratePlugin.

Add Comment

Modify Ticket

Action
as closed The owner will remain takayama.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.