Skip to content

Commit daaefb2

Browse files
committed
linting
1 parent e5e688f commit daaefb2

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

  • packages/polywrap-client/polywrap_client

packages/polywrap-client/polywrap_client/client.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def __init__(self, config: Optional[PolywrapClientConfig] = None):
4343
resolver=FsUriResolver(file_reader=SimpleFileReader())
4444
)
4545

46-
def getConfig(self):
46+
def get_config(self):
4747
return self._config
4848

4949
def get_uri_resolver(
@@ -130,16 +130,15 @@ async def invoke(self, options: InvokerOptions) -> InvokeResult:
130130
if options.encode_result and not result.encoded:
131131
encoded = msgpack_encode(result.result)
132132
return InvokeResult(result=encoded, error=None)
133-
elif (
133+
if (
134134
not options.encode_result
135135
and result.encoded
136136
and isinstance(result.result, (bytes, bytearray))
137137
):
138138
decoded: Any = msgpack_decode(result.result)
139139
return InvokeResult(result=decoded, error=None)
140-
else:
141-
return result
140+
return result
142141

143-
except Exception as e:
144-
raise e
145-
# return InvokeResult(result=None, error=e)
142+
except Exception as error:
143+
raise error
144+
# return InvokeResult(result=None, error=error)

0 commit comments

Comments
 (0)