A call to node.labels.clear() raise the following exception.
File "/usr/local/lib/python2.7/dist-packages/neo4jrestclient/labels.py", line 231, in clear
self._discard(label, return_label=False, raise_error=False)
File "/usr/local/lib/python2.7/dist-packages/neo4jrestclient/labels.py", line 236, in _discard
url = "{}/{}".format(self._url, smart_quote(label))
File "/usr/local/lib/python2.7/dist-packages/neo4jrestclient/utils.py", line 26, in smart_quote
safe_key = quote(val, safe="")
File "/usr/lib/python2.7/urllib.py", line 1292, in quote
if not s.rstrip(safe):
AttributeError: 'Label' object has no attribute 'rstrip'
A call to
node.labels.clear()
raise the following exception.Quici look to the code reveal the faulty line:
discard should be called with a string. Not a label: