diff --git a/btrdb/conn.py b/btrdb/conn.py index 72f7061..4d26400 100644 --- a/btrdb/conn.py +++ b/btrdb/conn.py @@ -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 @@ -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( (