Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Commit

Permalink
Add hack to avoid unclosed ssl warning
Browse files Browse the repository at this point in the history
  • Loading branch information
chamini2 committed Mar 23, 2022
1 parent af1471a commit b4759d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/fal/telemetry/telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ def str_param(item: Any, name: str) -> str:

def shutdown():
posthog.shutdown()
# HACK: while https://github.com/PostHog/posthog-python/pull/52 happens
from posthog.request import _session as posthog_session
posthog_session.close()


def opt_str_param(item: Any, name: str) -> Optional[str]:
Expand Down

0 comments on commit b4759d7

Please sign in to comment.