Skip to content

Commit 4fb9a40

Browse files
committed
CLN: flak8 compliance
Remove bare except
1 parent fa3eec8 commit 4fb9a40

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas_datareader/iex/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import json
2+
23
import pandas as pd
34
from pandas.io.common import urlencode
45
from pandas_datareader.base import _BaseReader
56

7+
68
# Data provided for free by IEX
79
# Data is furnished in compliance with the guidelines promulgated in the IEX
810
# API terms of service and manual
@@ -11,7 +13,6 @@
1113

1214

1315
class IEX(_BaseReader):
14-
1516
"""
1617
Serves as the base class for all IEX API services.
1718
"""
@@ -56,7 +57,7 @@ def _output_error(self, out):
5657
"""
5758
try:
5859
content = json.loads(out.text)
59-
except:
60+
except Exception:
6061
raise TypeError("Failed to interpret response as JSON.")
6162

6263
for key, string in content.items():

0 commit comments

Comments
 (0)