Skip to content
This repository was archived by the owner on Aug 7, 2024. It is now read-only.

Commit a779827

Browse files
committed
fix lint for pycodestyle
1 parent 97c0baf commit a779827

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

twitter/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1263,7 +1263,7 @@ def _UploadMediaChunkedAppend(self,
12631263

12641264
try:
12651265
media_fp.close()
1266-
except:
1266+
except Exception as e:
12671267
pass
12681268

12691269
return True

twitter/twitter_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def parse_media_file(passed_media):
233233

234234
try:
235235
data_file.seek(0)
236-
except:
236+
except Exception as e:
237237
pass
238238

239239
media_type = mimetypes.guess_type(os.path.basename(filename))[0]

0 commit comments

Comments
 (0)