Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

Commit

Permalink
Merge pull request #24 from kaz399/fix_indexerror
Browse files Browse the repository at this point in the history
Fix IndexError when the value of 'User' or 'UserMulti' is ''
  • Loading branch information
jasonrollins committed Feb 3, 2018
2 parents 14b20a8 + d4e3c68 commit 00ecb30
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shareplum/shareplum.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,10 @@ def _python_type(self, key, value):
# from the beginning of their name
if value in self.users['sp']:
return self.users['sp'][value]
else:
elif '#' in value:
return value.split('#')[1]
else:
return value
else:
return value
except AttributeError:
Expand Down

0 comments on commit 00ecb30

Please sign in to comment.