refactor: fix mutable default argument in send_telemetry
Signed-off-by: HectorSin <kkang15634@ajou.ac.kr>
This commit is contained in:
parent
46c12cc0ee
commit
da5660b716
1 changed files with 2 additions and 0 deletions
|
|
@ -80,6 +80,8 @@ def _sanitize_nested_properties(obj: Union[Dict, List, Any], property_names: lis
|
|||
|
||||
|
||||
def send_telemetry(event_name: str, user_id: Union[str, UUID], additional_properties: dict = {}):
|
||||
if additional_properties is None:
|
||||
additional_properties = {}
|
||||
if os.getenv("TELEMETRY_DISABLED"):
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue