Browse Source

i2pdctl: s/arguments/parameters (#43)

pull/44/head
l-n-s 7 years ago committed by GitHub
parent
commit
bb820de2fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      scripts/i2pdctl

6
scripts/i2pdctl

@ -92,12 +92,12 @@ class I2pdctl(object): @@ -92,12 +92,12 @@ class I2pdctl(object):
def execute(self, args):
"""Execute raw method"""
try:
arguments = json.loads(args.arguments)
parameters = json.loads(args.parameters)
except json.decoder.JSONDecodeError:
print("Error: arguments should be a valid JSON object")
print("Error: parameters should be a valid JSON object")
return
resp = self.ctl.request(args.method, arguments)
resp = self.ctl.request(args.method, parameters)
if args.json_output:
print(resp.text)

Loading…
Cancel
Save