Project

General

Profile

Bug #15042

'IntegrityError' is not defined

Added by Margherita Vittone Wiersma almost 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Target version:
Start date:
01/06/2017
Due date:
% Done:

100%

Estimated time:
First Occurred:
Scope:
Internal
Experiment:
-
Stakeholders:
Duration:

Description

As I was testing the Campaign Layer Editor , I tried the clone button, forcing to create exactly the same campaign. This causes a server crash with the following error:

Traceback (most recent call last):
File "/home/vittone/.local/lib/python2.7/site-packages/cherrypy/_cprequest.py", line 670, in respond
response.body = self.handler()
File "/home/vittone/.local/lib/python2.7/site-packages/cherrypy/lib/encoding.py", line 220, in call
self.body = self.oldhandler(*args, **kwargs)
File "/home/vittone/.local/lib/python2.7/site-packages/cherrypy/_cpdispatch.py", line 60, in call
return self.callable(*self.args, **self.kwargs)
File "/home/vittone/uwsgi/poms/webservice/poms_service.py", line 327, in campaign_edit
data = self.campaignsPOMS.campaign_edit(cherrypy.request.db, cherrypy.log, cherrypy.session, *args, **kwargs)
File "/home/vittone/uwsgi/poms/webservice/CampaignsPOMS.py", line 275, in campaign_edit
except IntegrityError, e:
NameError: global name 'IntegrityError' is not defined

Associated revisions

Revision 3059449c (diff)
Added by Marc Mengel over 2 years ago

resolves issue #15042 missing import

History

#1 Updated by Marc Mengel over 2 years ago

  • Target version set to v2_1_1

#2 Updated by Marc Mengel over 2 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

#3 Updated by Marc Mengel over 2 years ago

  • Status changed from Resolved to Closed


Also available in: Atom PDF