##### types #####
sqlalchemy.exc.IntegrityError
orig: pymysql.err.IntegrityError
##### str(exc) #####
(pymysql.err.IntegrityError) (1062, "Duplicate entry 'mk697c121db9' for key 'u.name'")
[SQL: INSERT INTO u VALUES (%(i)s, %(n)s, %(s)s)]
[parameters: [{'i': 100, 'n': 'mk697c121db9', 's': 's0'}, {'i': 101, 'n': 'mk697c121db9-1', 's': 's1'}, {'i': 102, 'n': 'mk697c121db9-2', 's': 's2'}, {'i': 103, 'n': 'mk697c121db9-3', 's': 's3'}, {'i': 104, 'n': 'mk697c121db9-4', 's': 's4'}, {'i': 105, 'n': 'mk697c121db9-5', 's': 's5'}, {'i': 106, 'n': 'mk697c121db9-6', 's': 's6'}, {'i': 107, 'n': 'mk697c121db9-7', 's': 's7'}  ... displaying 10 of 40 total bound parameter sets ...  {'i': 138, 'n': 'mk697c121db9-38', 's': 's38'}, {'i': 139, 'n': 'mk697c121db9-39', 's': 's39'}]]
(Background on this error at: https://sqlalche.me/e/21/gkpj)
##### str(exc.orig) #####
(1062, "Duplicate entry 'mk697c121db9' for key 'u.name'")
##### traceback #####
Traceback (most recent call last):
  File "<home>\AppData\Local\uv\cache\archive-v0\fsATR2No33hPH-TM9OZfe\Lib\site-packages\sqlalchemy\engine\base.py", line 1927, in _exec_single_context
    self.dialect.do_executemany(
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        cursor,
        ^^^^^^^
    ...<2 lines>...
        context,
        ^^^^^^^^
    )
    ^
  File "<home>\AppData\Local\uv\cache\archive-v0\fsATR2No33hPH-TM9OZfe\Lib\site-packages\sqlalchemy\dialects\mysql\mysqldb.py", line 200, in do_executemany
    rowcount = cursor.executemany(statement, parameters)
  File "<home>\AppData\Local\uv\cache\archive-v0\fsATR2No33hPH-TM9OZfe\Lib\site-packages\pymysql\cursors.py", line 199, in executemany
    return self._do_execute_many(
           ~~~~~~~~~~~~~~~~~~~~~^
        q_prefix,
        ^^^^^^^^^
    ...<4 lines>...
        self._get_db().encoding,
        ^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "<home>\AppData\Local\uv\cache\archive-v0\fsATR2No33hPH-TM9OZfe\Lib\site-packages\pymysql\cursors.py", line 231, in _do_execute_many
    rows += self.execute(sql + postfix)
            ~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "<home>\AppData\Local\uv\cache\archive-v0\fsATR2No33hPH-TM9OZfe\Lib\site-packages\pymysql\cursors.py", line 170, in execute
    result = self._query(query)
  File "<home>\AppData\Local\uv\cache\archive-v0\fsATR2No33hPH-TM9OZfe\Lib\site-packages\pymysql\cursors.py", line 335, in _query
    conn.query(q)
    ~~~~~~~~~~^^^
  File "<home>\AppData\Local\uv\cache\archive-v0\fsATR2No33hPH-TM9OZfe\Lib\site-packages\pymysql\connections.py", line 581, in query
    self._affected_rows = self._read_query_result(unbuffered=unbuffered)
                          ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
  File "<home>\AppData\Local\uv\cache\archive-v0\fsATR2No33hPH-TM9OZfe\Lib\site-packages\pymysql\connections.py", line 857, in _read_query_result
    result.read()
    ~~~~~~~~~~~^^
  File "<home>\AppData\Local\uv\cache\archive-v0\fsATR2No33hPH-TM9OZfe\Lib\site-packages\pymysql\connections.py", line 1290, in read
    first_packet = self.connection._read_packet()
  File "<home>\AppData\Local\uv\cache\archive-v0\fsATR2No33hPH-TM9OZfe\Lib\site-packages\pymysql\connections.py", line 810, in _read_packet
    packet.raise_for_error()
    ~~~~~~~~~~~~~~~~~~~~~~^^
  File "<home>\AppData\Local\uv\cache\archive-v0\fsATR2No33hPH-TM9OZfe\Lib\site-packages\pymysql\protocol.py", line 219, in raise_for_error
    err.raise_mysql_exception(self._data)
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
  File "<home>\AppData\Local\uv\cache\archive-v0\fsATR2No33hPH-TM9OZfe\Lib\site-packages\pymysql\err.py", line 154, in raise_mysql_exception
    raise errorclass(errno, errval, sqlstate=sqlstate)
pymysql.err.IntegrityError: (1062, "Duplicate entry 'mk697c121db9' for key 'u.name'")

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<repo>\scripts\dev\capture_sql_errors.py", line 341, in fail_sqlalchemy
    run_conn(d, ctx, work, hide_parameters=c.hide)
    ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<repo>\scripts\dev\capture_sql_errors.py", line 259, in run_conn
    return work(conn)
  File "<repo>\scripts\dev\capture_sql_errors.py", line 338, in work
    conn.execute(sa.text(c.sql), c.params)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<home>\AppData\Local\uv\cache\archive-v0\fsATR2No33hPH-TM9OZfe\Lib\site-packages\sqlalchemy\engine\base.py", line 1463, in execute
    return meth(
        self,
        distilled_parameters,
        execution_options or NO_OPTIONS,
    )
  File "<home>\AppData\Local\uv\cache\archive-v0\fsATR2No33hPH-TM9OZfe\Lib\site-packages\sqlalchemy\sql\elements.py", line 533, in _execute_on_connection
    return connection._execute_clauseelement(
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        self, distilled_params, execution_options
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "<home>\AppData\Local\uv\cache\archive-v0\fsATR2No33hPH-TM9OZfe\Lib\site-packages\sqlalchemy\engine\base.py", line 1683, in _execute_clauseelement
    ret = self._execute_context(
        dialect,
    ...<9 lines>...
        param_dict=param_dict,
    )
  File "<home>\AppData\Local\uv\cache\archive-v0\fsATR2No33hPH-TM9OZfe\Lib\site-packages\sqlalchemy\engine\base.py", line 1837, in _execute_context
    return self._exec_single_context(
           ~~~~~~~~~~~~~~~~~~~~~~~~~^
        dialect, context, statement, parameters
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "<home>\AppData\Local\uv\cache\archive-v0\fsATR2No33hPH-TM9OZfe\Lib\site-packages\sqlalchemy\engine\base.py", line 1977, in _exec_single_context
    self._handle_dbapi_exception(
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        e, str_statement, effective_parameters, cursor, context
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "<home>\AppData\Local\uv\cache\archive-v0\fsATR2No33hPH-TM9OZfe\Lib\site-packages\sqlalchemy\engine\base.py", line 2347, in _handle_dbapi_exception
    raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
  File "<home>\AppData\Local\uv\cache\archive-v0\fsATR2No33hPH-TM9OZfe\Lib\site-packages\sqlalchemy\engine\base.py", line 1927, in _exec_single_context
    self.dialect.do_executemany(
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        cursor,
        ^^^^^^^
    ...<2 lines>...
        context,
        ^^^^^^^^
    )
    ^
  File "<home>\AppData\Local\uv\cache\archive-v0\fsATR2No33hPH-TM9OZfe\Lib\site-packages\sqlalchemy\dialects\mysql\mysqldb.py", line 200, in do_executemany
    rowcount = cursor.executemany(statement, parameters)
  File "<home>\AppData\Local\uv\cache\archive-v0\fsATR2No33hPH-TM9OZfe\Lib\site-packages\pymysql\cursors.py", line 199, in executemany
    return self._do_execute_many(
           ~~~~~~~~~~~~~~~~~~~~~^
        q_prefix,
        ^^^^^^^^^
    ...<4 lines>...
        self._get_db().encoding,
        ^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "<home>\AppData\Local\uv\cache\archive-v0\fsATR2No33hPH-TM9OZfe\Lib\site-packages\pymysql\cursors.py", line 231, in _do_execute_many
    rows += self.execute(sql + postfix)
            ~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "<home>\AppData\Local\uv\cache\archive-v0\fsATR2No33hPH-TM9OZfe\Lib\site-packages\pymysql\cursors.py", line 170, in execute
    result = self._query(query)
  File "<home>\AppData\Local\uv\cache\archive-v0\fsATR2No33hPH-TM9OZfe\Lib\site-packages\pymysql\cursors.py", line 335, in _query
    conn.query(q)
    ~~~~~~~~~~^^^
  File "<home>\AppData\Local\uv\cache\archive-v0\fsATR2No33hPH-TM9OZfe\Lib\site-packages\pymysql\connections.py", line 581, in query
    self._affected_rows = self._read_query_result(unbuffered=unbuffered)
                          ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
  File "<home>\AppData\Local\uv\cache\archive-v0\fsATR2No33hPH-TM9OZfe\Lib\site-packages\pymysql\connections.py", line 857, in _read_query_result
    result.read()
    ~~~~~~~~~~~^^
  File "<home>\AppData\Local\uv\cache\archive-v0\fsATR2No33hPH-TM9OZfe\Lib\site-packages\pymysql\connections.py", line 1290, in read
    first_packet = self.connection._read_packet()
  File "<home>\AppData\Local\uv\cache\archive-v0\fsATR2No33hPH-TM9OZfe\Lib\site-packages\pymysql\connections.py", line 810, in _read_packet
    packet.raise_for_error()
    ~~~~~~~~~~~~~~~~~~~~~~^^
  File "<home>\AppData\Local\uv\cache\archive-v0\fsATR2No33hPH-TM9OZfe\Lib\site-packages\pymysql\protocol.py", line 219, in raise_for_error
    err.raise_mysql_exception(self._data)
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
  File "<home>\AppData\Local\uv\cache\archive-v0\fsATR2No33hPH-TM9OZfe\Lib\site-packages\pymysql\err.py", line 154, in raise_mysql_exception
    raise errorclass(errno, errval, sqlstate=sqlstate)
sqlalchemy.exc.IntegrityError: (pymysql.err.IntegrityError) (1062, "Duplicate entry 'mk697c121db9' for key 'u.name'")
[SQL: INSERT INTO u VALUES (%(i)s, %(n)s, %(s)s)]
[parameters: [{'i': 100, 'n': 'mk697c121db9', 's': 's0'}, {'i': 101, 'n': 'mk697c121db9-1', 's': 's1'}, {'i': 102, 'n': 'mk697c121db9-2', 's': 's2'}, {'i': 103, 'n': 'mk697c121db9-3', 's': 's3'}, {'i': 104, 'n': 'mk697c121db9-4', 's': 's4'}, {'i': 105, 'n': 'mk697c121db9-5', 's': 's5'}, {'i': 106, 'n': 'mk697c121db9-6', 's': 's6'}, {'i': 107, 'n': 'mk697c121db9-7', 's': 's7'}  ... displaying 10 of 40 total bound parameter sets ...  {'i': 138, 'n': 'mk697c121db9-38', 's': 's38'}, {'i': 139, 'n': 'mk697c121db9-39', 's': 's39'}]]
(Background on this error at: https://sqlalche.me/e/21/gkpj)
