diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-07-24 16:25:40 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-07-24 16:25:40 +0000 |
commit | 3c64a0cf738f4ce2447cbfcd7faadfe3fdf783f1 (patch) | |
tree | d34d45b02f1499592faae2a3e0df3057a2bb5130 /lib/sqlalchemy/attributes.py | |
parent | ade0a51a79e722f8c5d77f2ef5ac10bc530b03d3 (diff) | |
download | sqlalchemy-3c64a0cf738f4ce2447cbfcd7faadfe3fdf783f1.tar.gz |
[ticket:254]
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 5e2226e9d..724f1c807 100644 --- a/lib/sqlalchemy/attributes.py +++ b/lib/sqlalchemy/attributes.py @@ -573,7 +573,7 @@ class AttributeManager(object): if not isinstance(class_, type): raise repr(class_) + " is not a type" for key in dir(class_): - value = getattr(class_, key) + value = getattr(class_, key, None) if isinstance(value, InstrumentedAttribute): yield value |