Skip to content
Snippets Groups Projects
Commit 4d43ef3e authored by vlorentz's avatar vlorentz
Browse files

swhgraph: Fix type error in exception handling

parent f178d01f
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,7 @@ class ArchiveGraph:
except grpc.RpcError as e:
if (
e.code() == grpc.StatusCode.INVALID_ARGUMENT
and "Unknown SWHID" in e.details()
and "Unknown SWHID" in (e.details() or "")
):
pass
raise
......@@ -74,7 +74,7 @@ class ArchiveGraph:
except grpc.RpcError as e:
if (
e.code() == grpc.StatusCode.INVALID_ARGUMENT
and "Unknown SWHID" in e.details()
and "Unknown SWHID" in (e.details() or "")
):
pass
raise
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment