branch | stable |
changeset 10049 | 8facecb02e42 |
parent 10048 | 7d9256aab337 |
child 10052 | 76e895a380ea |
--- a/server/sources/native.py Mon Nov 24 15:43:18 2014 +0100 +++ b/server/sources/native.py Mon Nov 24 16:22:40 2014 +0100 @@ -769,6 +769,9 @@ raise UniqueTogetherError(etype, rtypes) # sqlite mo = re.search('columns (.*) are not unique', arg) + if mo is None: + # sqlite > 3.7 + mo = re.search('UNIQUE constraint failed: (.*)', arg) if mo is not None: # sqlite in use # we left chop the 'cw_' prefix of attribute names rtypes = [c.strip()[3:]