aboutsummaryrefslogtreecommitdiffstats
path: root/bsfs/graph/walk.py
diff options
context:
space:
mode:
authorMatthias Baumgartner <dev@igsor.net>2023-02-08 21:08:24 +0100
committerMatthias Baumgartner <dev@igsor.net>2023-02-08 21:08:24 +0100
commitf31a0d005785d474a37ec769c1f7f5e27aa08a57 (patch)
tree784c0ca9311dc43017418ff59ea88a2ea9815f8c /bsfs/graph/walk.py
parent64f3ac76a2f8d6b51380c06233accfcc19dca228 (diff)
downloadbsfs-f31a0d005785d474a37ec769c1f7f5e27aa08a57.tar.gz
bsfs-f31a0d005785d474a37ec769c1f7f5e27aa08a57.tar.bz2
bsfs-f31a0d005785d474a37ec769c1f7f5e27aa08a57.zip
minor comments
Diffstat (limited to 'bsfs/graph/walk.py')
-rw-r--r--bsfs/graph/walk.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bsfs/graph/walk.py b/bsfs/graph/walk.py
index 63ef5e9..1b1cfa0 100644
--- a/bsfs/graph/walk.py
+++ b/bsfs/graph/walk.py
@@ -88,9 +88,9 @@ class Walk(abc.Hashable, abc.Callable): # type: ignore [misc] # invalid base cla
if pred.uri.get('fragment', None) == name
)
if len(predicates) == 0: # no fragment found for name
- raise ValueError(f'no available predicate matches {name}')
+ raise ValueError(f'no available predicate matches {name}') # FIXME: Custom exception
if len(predicates) > 1: # ambiguous name
- raise ValueError(f'{name} matches multiple predicates')
+ raise ValueError(f'{name} matches multiple predicates') # FIXME: Custom exception
# append predicate to walk
return predicates # type: ignore [return-value] # size is one