macrostrat.database 3.3.0__tar.gz → 3.3.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: macrostrat.database
3
- Version: 3.3.0
3
+ Version: 3.3.1
4
4
  Summary: A SQLAlchemy-based database toolkit.
5
5
  Author: Daven Quinn
6
6
  Author-email: dev@davenquinn.com
@@ -17,6 +17,7 @@ from sqlalchemy.exc import (
17
17
  InternalError,
18
18
  InvalidRequestError,
19
19
  ProgrammingError,
20
+ OperationalError
20
21
  )
21
22
  from sqlalchemy.orm import sessionmaker
22
23
  from sqlalchemy.schema import Table
@@ -309,7 +310,7 @@ def _run_sql(connectable, sql, params=None, **kwargs):
309
310
  elif hasattr(connectable, "commit"):
310
311
  connectable.commit()
311
312
  pretty_print(sql_text, dim=True)
312
- except (ProgrammingError, IntegrityError, InternalError) as err:
313
+ except (ProgrammingError, IntegrityError, InternalError, OperationalError) as err:
313
314
  _err = str(err.orig).strip()
314
315
  dim = "already exists" in _err
315
316
  if trans is not None:
@@ -3,7 +3,7 @@ authors = ["Daven Quinn <dev@davenquinn.com>"]
3
3
  description = "A SQLAlchemy-based database toolkit."
4
4
  name = "macrostrat.database"
5
5
  packages = [{ include = "macrostrat" }]
6
- version = "3.3.0"
6
+ version = "3.3.1"
7
7
 
8
8
  [tool.poetry.dependencies]
9
9
  GeoAlchemy2 = "^0.14.0"