Browse Source

PEEK-1406 Fix TypeError due to slice input from a Github contributor

main
Louis Lu 2 years ago
committed by Jarrod Chesney
parent
commit
434f6ca00d
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/SOAPpy/Types.py

+ 2
- 0
src/SOAPpy/Types.py View File

@@ -1451,6 +1451,8 @@ class arrayType(collections.UserList, compoundType):
def __getitem__(self, item):
try:
return self.data[int(item)]
except TypeError:
return self.data[item]
except ValueError:
return getattr(self, item)



Loading…
Cancel
Save