Skip to content

Commit

Permalink
xirvik/client: type fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tatsh committed Oct 22, 2020
1 parent 1f6058e commit 08386e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xirvik/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,9 @@ def delete(self, hash_: str) -> None:
getattr(mc, 'd.erase')(hash_)
for x in mc().results:
try:
raise xmlrpc.Fault(x['faultCode'], x['faultString'])
raise xmlrpc.Fault(
cast(Dict[str, Any], x)['faultCode'],
cast(Dict[str, Any], x)['faultString'])
except (TypeError, KeyError):
pass

Expand Down

0 comments on commit 08386e1

Please sign in to comment.