fix resolve error messages
This commit is contained in:
parent
3b2b8f814c
commit
9e3963ba23
1 changed files with 10 additions and 1 deletions
11
hub/db/db.py
11
hub/db/db.py
|
@ -417,7 +417,16 @@ class SecondaryDB:
|
||||||
results[url] = ExpandedResolveResult(
|
results[url] = ExpandedResolveResult(
|
||||||
None, LookupError(f'Could not find channel in "{url}".'), None, None
|
None, LookupError(f'Could not find channel in "{url}".'), None, None
|
||||||
)
|
)
|
||||||
elif not isinstance(parsed, Exception) and (parsed.has_stream_in_channel or parsed.has_stream):
|
elif not isinstance(parsed, Exception) and not parsed.has_channel and parsed.has_stream:
|
||||||
|
results[url] = ExpandedResolveResult(
|
||||||
|
LookupError(f'Could not find claim at "{url}".'), None, None, None
|
||||||
|
)
|
||||||
|
elif not isinstance(parsed, Exception) and parsed.has_stream_in_channel:
|
||||||
|
if reverse_mapping_outer_layer_claims.get(url) is None:
|
||||||
|
results[url] = ExpandedResolveResult(
|
||||||
|
None, LookupError(f'Could not find channel in "{url}".'), None, None
|
||||||
|
)
|
||||||
|
else:
|
||||||
results[url] = ExpandedResolveResult(
|
results[url] = ExpandedResolveResult(
|
||||||
LookupError(f'Could not find claim at "{url}".'), None, None, None
|
LookupError(f'Could not find claim at "{url}".'), None, None, None
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue