Skip to content

Commit 62fa494

Browse files
committed
flake8
1 parent 2b94915 commit 62fa494

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

pandas/io/json/json.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ def read_json(path_or_buf=None, orient=None, typ='frame', dtype=True,
423423
if should_close:
424424
try:
425425
filepath_or_buffer.close()
426-
except:
426+
except: # noqa: flake8
427427
pass
428428
return result
429429

pandas/io/packers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def read(fh):
192192
if should_close:
193193
try:
194194
path_or_buf.close()
195-
except:
195+
except: # noqa: flake8
196196
pass
197197
return l
198198

pandas/io/parquet.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def read(self, path, columns=None, **kwargs):
132132
if should_close:
133133
try:
134134
path.close()
135-
except:
135+
except: # noqa: flake8
136136
pass
137137

138138
return result

pandas/io/parsers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ def _read(filepath_or_buffer, kwds):
443443
if should_close:
444444
try:
445445
filepath_or_buffer.close()
446-
except:
446+
except: # noqa: flake8
447447
pass
448448

449449
return data

pandas/tests/io/conftest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def add_tips_files(bucket_name):
7777
conn.create_bucket(Bucket='cant_get_it', ACL='private')
7878
add_tips_files('cant_get_it')
7979
yield conn
80-
except:
80+
except: # noqa: flake8
8181
pytest.skip("failure to use s3 resource")
8282
finally:
8383
s3.stop()

0 commit comments

Comments
 (0)