Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions idanalyzer/idanalyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ def __init__(self, apikey, region="US"):
raise ValueError("Please provide an API key")
if not region:
raise ValueError("Please set an API region (US, EU)")
self.config = self.DEFAULT_CONFIG
self.apikey = apikey
self.throw_error = False
if region.upper() == "EU":
Expand All @@ -82,6 +81,7 @@ def __init__(self, apikey, region="US"):
self.apiendpoint = "https://api.idanalyzer.com/"
else:
self.apiendpoint = region
self.reset_config()

def throw_api_exception(self, throw_exception = False):
"""
Expand All @@ -95,7 +95,7 @@ def reset_config(self):
"""
Reset all API configurations except API key and region.
"""
self.config = self.DEFAULT_CONFIG
self.config = self.DEFAULT_CONFIG.copy()

def set_accuracy(self, accuracy=2):
"""
Expand Down