This commit is contained in:
Behdad Esfahbod 2013-09-04 09:56:51 -04:00
parent 1830541975
commit 583ce6356d

View File

@ -47,13 +47,7 @@ class Row(object):
# It's hard to differentiate list-type sequences # It's hard to differentiate list-type sequences
# from dict-type ones. Try fetching item 0. # from dict-type ones. Try fetching item 0.
value[0] value[0]
except TypeError: except (TypeError, AttributeError, KeyError, IndexError):
is_sequence = False
except AttributeError:
is_sequence = False
except KeyError:
is_sequence = False
except IndexError:
is_sequence = False is_sequence = False
if is_sequence: if is_sequence:
self._add_list(key, value) self._add_list(key, value)