summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/upip.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/upip.py b/tools/upip.py
index aa8aecedf..728b843c9 100644
--- a/tools/upip.py
+++ b/tools/upip.py
@@ -60,7 +60,7 @@ def _makedirs(name, mode=0o777):
os.mkdir(s)
ret = True
except OSError as e:
- if e.args[0] != errno.EEXIST and e.args[0] != errno.EISDIR:
+ if e.errno != errno.EEXIST and e.errno != errno.EISDIR:
raise e
ret = False
return ret