aplbrain / dotmotif

A performant, powerful query framework to search for network motifs
https://bossdb.org/tools/dotmotif
Apache License 2.0
81 stars 9 forks source link

Support nonexistent attributes instead of throwing a NoneType error #138

Open j6k4m8 opened 4 months ago

j6k4m8 commented 4 months ago

argument of type 'NoneType' is not iterable when running a query against something that might not exist:

A -> B
B.labels contains "Tag"

If not all vertices have a labels attr this can throw. Instead, we should gracefully fail for that vertex match.