Minor
This commit is contained in:
parent
1830541975
commit
583ce6356d
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user