summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/exc.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-01-17 22:23:54 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2010-01-17 22:23:54 +0000
commite9076d04b0ec82a403a885be7999eab7d346923b (patch)
tree4870d4f61a0a8b0125f364b16b1a5ebb24642ffb /lib/sqlalchemy/orm/exc.py
parent8fa55917acbe28d96c83983d2f1b01d51a952d1c (diff)
downloadsqlalchemy-e9076d04b0ec82a403a885be7999eab7d346923b.tar.gz
- raise error when unpickling non-mapped state, [ticket:1610]
- remove pickle language from regular unmapped class error
Diffstat (limited to 'lib/sqlalchemy/orm/exc.py')
-rw-r--r--lib/sqlalchemy/orm/exc.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/sqlalchemy/orm/exc.py b/lib/sqlalchemy/orm/exc.py
index ccb4feda2..8b52eec8a 100644
--- a/lib/sqlalchemy/orm/exc.py
+++ b/lib/sqlalchemy/orm/exc.py
@@ -33,10 +33,8 @@ class UnmappedInstanceError(UnmappedError):
mapper = sa.orm.class_mapper(type(obj))
name = _safe_cls_name(type(obj))
msg = ("Class %r is mapped, but this instance lacks "
- "instrumentation. Possible causes: instance created "
- "before sqlalchemy.orm.mapper(%s) was called, or "
- "instance was pickled/depickled without instrumentation"
- "information." % (name, name))
+ "instrumentation. This occurs when the instance is created "
+ "before sqlalchemy.orm.mapper(%s) was called." % (name, name))
except UnmappedClassError:
msg = _default_unmapped(type(obj))
if isinstance(obj, type):