diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-02-19 00:19:16 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-02-19 00:19:16 +0000 |
commit | f1a68f37fa9aea41d21049307fef840f9b6a0116 (patch) | |
tree | d762e8e262f0ed6d31c689912fdb82dc55771ad1 /lib/sqlalchemy/attributes.py | |
parent | 2d5e6eb93b08961d557399899a51dac225832716 (diff) | |
download | sqlalchemy-f1a68f37fa9aea41d21049307fef840f9b6a0116.tar.gz |
exception package added, support throughout
Diffstat (limited to 'lib/sqlalchemy/attributes.py')
-rw-r--r-- | lib/sqlalchemy/attributes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/attributes.py b/lib/sqlalchemy/attributes.py index f6abe6b31..7a9f13c57 100644 --- a/lib/sqlalchemy/attributes.py +++ b/lib/sqlalchemy/attributes.py @@ -76,7 +76,7 @@ class PropHistory(object): return self.obj.__dict__[self.key] def setattr(self, value): if isinstance(value, list): - raise ("assigning a list to scalar property '%s' on '%s' instance %d" % (self.key, self.obj.__class__.__name__, id(self.obj))) + raise InvalidRequestError("assigning a list to scalar property '%s' on '%s' instance %d" % (self.key, self.obj.__class__.__name__, id(self.obj))) orig = self.obj.__dict__.get(self.key, None) if orig is value: return |