From 341c2a4d5a1637613a178033773c50ac4ec25947 Mon Sep 17 00:00:00 2001 From: Steven Xu Date: Mon, 6 Jan 2020 22:52:47 +1100 Subject: [PATCH] Use `errno` instead --- lib/cfv/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cfv/common.py b/lib/cfv/common.py index 50437c4..b768673 100644 --- a/lib/cfv/common.py +++ b/lib/cfv/common.py @@ -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