diff options
Diffstat (limited to 'lib/sqlalchemy/ext/indexable.py')
-rw-r--r-- | lib/sqlalchemy/ext/indexable.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/ext/indexable.py b/lib/sqlalchemy/ext/indexable.py index 5002e9beb..7d6348524 100644 --- a/lib/sqlalchemy/ext/indexable.py +++ b/lib/sqlalchemy/ext/indexable.py @@ -284,7 +284,7 @@ class index_property(hybrid_property): # noqa raise AttributeError(self.attr_name) try: value = column_value[self.index] - except KeyError: + except (KeyError, IndexError): raise AttributeError(self.attr_name) else: return value |