Keeper-Security / Commander

Keeper Commander is a python-based CLI and SDK interface to the Keeper Security platform. Provides administrative controls, reporting, import/export and vault management.
https://www.keepersecurity.com/commander.html
MIT License
182 stars 74 forks source link

improvement: option to raise errors for query_enterprise #1222

Closed Silentapproach closed 2 months ago

Silentapproach commented 3 months ago

Currently, any error raised inside query_enterprise is only logged as a warning, with no easy way to catch it in an except clause outside the function.

Because I didn't want my code to break any codebases, it is implemented as an optional parameter.

sk-keeper commented 3 months ago

api.query_enterprise can be replaced with enterprise.query_enterprise to get the same results.

Silentapproach commented 2 months ago

@sk-keeper yep that worked. Thanks for the tip. I leave it up to you, if that gets merged or not. I mean it doesn't hurt anybody :-)