mirror of
				https://github.com/PurpleI2P/i2pd-tools.git
				synced 2025-11-04 08:30:47 +00:00 
			
		
		
		
	i2pdctl: s/arguments/parameters (#43)
This commit is contained in:
		
							parent
							
								
									14964bd384
								
							
						
					
					
						commit
						bb820de2fa
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue