Skip to content

Gracefully tag already tagged batches #107

@wetneb

Description

@wetneb
[2024-05-22 08:19:23,096: ERROR/ForkPoolWorker-6] Task inspect_batches[cea9c6df-9e1b-4c58-8843-a1e05e29ff1b] raised unexpected: IntegrityError(1062, "Duplicate entry 'prop-P1545-1967099' for key 'tagging_tag_batches_tag_id_batch_id_3fdf11f1_uniq'")
Traceback (most recent call last):
  File "/data/project/editgroups/www/python/venv/lib/python3.11/site-packages/django/db/backends/utils.py", line 105, in _execute
    return self.cursor.execute(sql, params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/project/editgroups/www/python/venv/lib/python3.11/site-packages/django/db/backends/mysql/base.py", line 76, in execute
    return self.cursor.execute(query, args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/project/editgroups/www/python/venv/lib/python3.11/site-packages/mysqlclient-2.2.1-py3.11-linux-x86_64.egg/MySQLdb/cursors.py", line 179, in execute
    res = self._query(mogrified_query)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/project/editgroups/www/python/venv/lib/python3.11/site-packages/mysqlclient-2.2.1-py3.11-linux-x86_64.egg/MySQLdb/cursors.py", line 330, in _query
    db.query(q)
  File "/data/project/editgroups/www/python/venv/lib/python3.11/site-packages/mysqlclient-2.2.1-py3.11-linux-x86_64.egg/MySQLdb/connections.py", line 257, in query
    _mysql.connection.query(self, query)
MySQLdb.IntegrityError: (1062, "Duplicate entry 'prop-P1545-1967099' for key 'tagging_tag_batches_tag_id_batch_id_3fdf11f1_uniq'")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions