Skip to content

Commit

Permalink
query_limit: error if no data provided
Browse files Browse the repository at this point in the history
query_limit gets error if no data provided. The default value 20 must be the second parameter, not the third (currently the default is None, and the str(None) is cracking)
  • Loading branch information
siisar authored Apr 26, 2019
1 parent 8dae6a8 commit 00ef849
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion analyzers/Umbrella/Umbrella.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def __init__(self):
self.api_key = self.get_param('config.api_key', None, 'api_key is missing')
self.api_secret = self.get_param('config.api_secret', None, 'api_secret is missing')
self.organization_id = self.get_param('config.organization_id', None, 'organization_id is missing')
self.query_limit = str(self.get_param('config.query_limit', None, 20))
self.query_limit = str(self.get_param('config.query_limit', 20))

def umbrella_runreport(self, destination):
base_url = "https://reports.api.umbrella.com/v1/organizations"
Expand Down

0 comments on commit 00ef849

Please sign in to comment.