ArangoDB-Community / pyArango

Python Driver for ArangoDB with built-in validation
https://pyarango.readthedocs.io/en/latest/
Apache License 2.0
238 stars 90 forks source link

links(...) _id save failure #96

Closed remingtonc closed 6 years ago

remingtonc commented 6 years ago

Using latest master.

Traceback (most recent call last):
  File "main.py", line 65, in <module>
    main()
  File "main.py", line 62, in main
    populate_static(db)
  File "/data/static.py", line 301, in populate_static
    populate_os_releases(db)
  File "/data/static.py", line 292, in populate_os_releases
    db['OSHasRelease'].createEdge().links(new_os, new_release)
  File "/root/.local/share/virtualenvs/data-I7nS9QO2/lib/python3.6/site-packages/pyArango/document.py", line 405, in links
    fromVertice._id.save()
AttributeError: 'NoneType' object has no attribute 'save'
tariqdaouda commented 6 years ago

Should work now!