Skip to content
Merged
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
7 changes: 4 additions & 3 deletions btrdb/conn.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,11 @@ def __init__(self, addrportstr, apikey=None):
The ``btrdb.connect`` method is a helper function to make connecting to the platform easier
usually that will be sufficient for most users.
"""
# 4 Is a magic number to make sure the error propagates where btrdb.connect is called.
warn(
"This API is deprecated in favor of the pingthings_api, refer to your hub landing page for further documentation.",
DeprecationWarning,
stacklevel=2,
FutureWarning,
stacklevel=4,
)
addrport = addrportstr.split(":", 2)
# 100MB size limit ~ 2500 streams for 5000 points with each point being 64bit
Expand Down Expand Up @@ -135,7 +136,7 @@ def __init__(self, apikey, client_call_details):
version = "unknown"
try:
version = importlib.metadata.version("btrdb")
except:
except Exception:
pass
metadata.append(
(
Expand Down
Loading