Skip to content

Commit

Permalink
2.022 fix rpc params index
Browse files Browse the repository at this point in the history
  • Loading branch information
fffonion committed Mar 23, 2020
1 parent dcc4312 commit ec9c522
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xeHentai/rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def do_POST(self):
break
self.xeH.logger.verbose("RPC from: %s, cmd: %s, params: %s" % (self.client_address[0], cmd, params))
try:
cmd_rt = getattr(self.xeH, cmd_r)(*params[0], **params[1])
cmd_rt = getattr(self.xeH, cmd_r)(*params[-2], **params[-1])
except (ValueError, TypeError) as ex:
self.xeH.logger.verbose("RPC exec error:\n%s" % traceback.format_exc())
code = 500
Expand Down

0 comments on commit ec9c522

Please sign in to comment.