Skip to content

Commit

Permalink
client fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
latentvector committed Sep 17, 2024
1 parent 1d54039 commit 4de530e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion commune/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def call(cls,
else:
module = fn
fn = 'info'
client = c.connect(module, key=key, network=network)
client = cls(module=module, key=key, network=network)
response = client.forward(fn=fn,
args=args,
kwargs=kwargs,
Expand Down
1 change: 1 addition & 0 deletions commune/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ def set_api(self,

def fn_forward(fn, request: Request):
try:
print(f'Forwarding {fn}')
output = self.forward(fn, request)
except Exception as e:
output = c.detailed_error(e)
Expand Down

0 comments on commit 4de530e

Please sign in to comment.