Skip to content

Commit 93a0a04

Browse files
Be more specific about catching Exceptions
Co-Authored-By: bridadan <[email protected]>
1 parent 17fd383 commit 93a0a04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mbed/mbed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ def fetch_rev(url, rev):
396396
# Download and write the data in 1 MB chunks
397397
data = inurl.read(1024 * 1024)
398398
outfd.write(data)
399-
except:
399+
except Exception:
400400
if os.path.isfile(rev_file):
401401
os.remove(rev_file)
402402
raise Exception(128, "Download failed!\nPlease try again later.")

0 commit comments

Comments
 (0)