From 358722b9ccd1efed17fe96ea6a78b5c850217a18 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Wed, 11 Jul 2018 15:25:05 +0200 Subject: [PATCH] fix #4533 --- lib/util.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/util.py b/lib/util.py index 16d1d6f57..0e9f1285c 100644 --- 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():