diff options
| author | Georgios Andreadis <info@gandreadis.com> | 2020-06-24 10:05:22 +0200 |
|---|---|---|
| committer | Georgios Andreadis <info@gandreadis.com> | 2020-06-24 10:05:22 +0200 |
| commit | c7f773b027019086153f0260b507c8fa173ee5e8 (patch) | |
| tree | 982048b9a117f1c03abeb26ab84d70f4a82115f8 /opendc/models | |
| parent | bae760a62fc6a480fbe615dff6a7de03c7fd6d1d (diff) | |
Fix API serialization issues
Diffstat (limited to 'opendc/models')
| -rw-r--r-- | opendc/models/model.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/opendc/models/model.py b/opendc/models/model.py index 896eb235..73eabd26 100644 --- a/opendc/models/model.py +++ b/opendc/models/model.py @@ -269,7 +269,7 @@ class Model(object): last_row_id = database.execute(statement, values) except Exception as e: print(e) - raise exceptions.ForeignKeyError(e.message) + raise exceptions.ForeignKeyError(e) if 'id' in self.COLUMNS_PRIMARY_KEY: if is_auto_generated: @@ -300,4 +300,4 @@ class Model(object): try: database.execute(statement, values) except Exception as e: - raise exceptions.ForeignKeyError(e.message) + raise exceptions.ForeignKeyError(e) |
