Raise error en slice

This commit is contained in:
2017-12-13 10:25:10 +01:00
parent b303b0cdc3
commit 562c75880b

View File

@@ -8,7 +8,7 @@ PYTHON3 = True
if sys.version_info[0] < 3:
PYTHON3 = False
VERSION = "0.0.14"
VERSION = "0.0.15"
def is_map(obj):
@@ -308,6 +308,9 @@ class SQLQuery(object):
return clone
def __getitem__(self, slice):
if isinstance(slice, str):
raise IndexError
clone = self._clone()
clone._limits = slice
return clone