HomePhabricator

Do not crash when SPARQL query return nothing
e712b15bcbe3Unpublished

Tags
None
Referenced Files
None
Subscribers
None

Unpublished Commit · Learn More

Publishing Disabled: All publishing is disabled for this repository.
This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

Description

Do not crash when SPARQL query return nothing

This is not exactly smart error handling,
but avoiding a complete crash is probably good :)

This should prevent stuff like:

  File "./property_statistics.py", line 106, in get_property_info
    for resultitem in queryresult:
TypeError: 'NoneType' object is not iterable

Details

Provenance
JeanFredAuthored on May 20 2019, 3:27 PM
Parents
R2566:5266ee00d08c: Need to escape curly braces in Jinja templates
Branches
Unknown
Tags
Unknown
ChangeId
None