Skip to content

Commit

Permalink
Use errno instead
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenxxiu committed Jan 6, 2020
1 parent 56fa8fb commit 341c2a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cfv/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -1889,7 +1889,7 @@ def make(cftype, ifilename, testfiles):
try:
(filecrc, filesize), dat = cf.make_addfile(f)
except EnvironmentError as a:
if a[0] == errno.ENOENT:
if a.errno == errno.ENOENT:
stats.notfound += 1
else:
stats.ferror += 1
Expand Down

0 comments on commit 341c2a4

Please sign in to comment.