Fixed indentation errors.

This commit is contained in:
saisuraj27 2024-02-05 23:55:22 +05:30 committed by Christian Decker
parent a35006e701
commit 34aaa9c7ba
1 changed files with 2 additions and 2 deletions

View File

@ -950,14 +950,14 @@ class Plugin(object):
v = d.get(key)
if not isinstance(v, str):
raise TypeError("Wrong argument to init: expected {key} to be"
" a string, got {v}".format(key=key, v=v))
" a string, got {v}".format(key=key, v=v))
return v
def verify_bool(d: Dict[str, JSONType], key: str) -> bool:
v = d.get(key)
if not isinstance(v, bool):
raise TypeError("Wrong argument to init: expected {key} to be"
" a bool, got {v}".format(key=key, v=v))
" a bool, got {v}".format(key=key, v=v))
return v
self.rpc_filename = verify_str(configuration, 'rpc-file')