Skip to content

Commit 4cf9811

Browse files
committed
Cleaned up unused library and bare except
1 parent e3b4c73 commit 4cf9811

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

btrdb/conn.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
from concurrent.futures import ThreadPoolExecutor
2525
from typing import List, Tuple, Union
2626
from warnings import warn
27-
import warnings
2827

2928
import certifi
3029
import grpc
@@ -67,11 +66,11 @@ def __init__(self, addrportstr, apikey=None):
6766
The ``btrdb.connect`` method is a helper function to make connecting to the platform easier
6867
usually that will be sufficient for most users.
6968
"""
70-
#4 Is a magic number to make sure the error propagates where btrdb.connect is called.
69+
# 4 Is a magic number to make sure the error propagates where btrdb.connect is called.
7170
warn(
7271
"This API is deprecated in favor of the pingthings_api, refer to your hub landing page for further documentation.",
7372
FutureWarning,
74-
stacklevel=4
73+
stacklevel=4,
7574
)
7675
addrport = addrportstr.split(":", 2)
7776
# 100MB size limit ~ 2500 streams for 5000 points with each point being 64bit
@@ -137,7 +136,7 @@ def __init__(self, apikey, client_call_details):
137136
version = "unknown"
138137
try:
139138
version = importlib.metadata.version("btrdb")
140-
except:
139+
except Exception:
141140
pass
142141
metadata.append(
143142
(

0 commit comments

Comments
 (0)