commit 358722b9ccd1efed17fe96ea6a78b5c850217a18
parent 40a43afa12ef1091f405d20526b16209c2e062bf
Author: SomberNight <somber.night@protonmail.com>
Date: Wed, 11 Jul 2018 15:25:05 +0200
fix #4533
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lib/util.py b/lib/util.py
@@ -330,7 +330,10 @@ def android_data_dir():
def android_headers_dir():
d = android_ext_dir() + '/org.electrum.electrum'
if not os.path.exists(d):
- os.mkdir(d)
+ try:
+ os.mkdir(d)
+ except FileExistsError:
+ pass # in case of race
return d
def android_check_data_dir():