File tree Expand file tree Collapse file tree
packages/polywrap-client/polywrap_client Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments