Project

General

Profile

Bug #22317

Updated by Alfredo Deza over 6 years ago

This is caused because the exception class inherits from parent classes that do not define any keyword arguments 

 <pre> 
 $ ceph osd --help 
 ... 
 server name not found: 192.168.111. (Name or service not known) 
 unable to parse addrs in '192.168.111.' 
 InvalidArgumentError does not take keyword arguments 
 </pre> 

 But the error handling in `rados.pyx` uses `errno_to_exception` that will pass the message and the errno: 

 <pre> 
         return errno_to_exception[ret](msg, errno=ret) 
 </pre>

Back