summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/exc.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/orm/exc.py')
-rw-r--r--lib/sqlalchemy/orm/exc.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/exc.py b/lib/sqlalchemy/orm/exc.py
index 11e69d221..ff0ece411 100644
--- a/lib/sqlalchemy/orm/exc.py
+++ b/lib/sqlalchemy/orm/exc.py
@@ -121,7 +121,7 @@ class ObjectDeletedError(sa_exc.InvalidRequestError):
def __init__(self, base, state, msg=None):
if not msg:
msg = "Instance '%s' has been deleted, or its "\
- "row is otherwise not present." % base.state_str(state)
+ "row is otherwise not present." % base.state_str(state)
sa_exc.InvalidRequestError.__init__(self, msg)
@@ -150,6 +150,7 @@ def _safe_cls_name(cls):
cls_name = repr(cls)
return cls_name
+
@util.dependencies("sqlalchemy.orm.base")
def _default_unmapped(base, cls):
try: