summaryrefslogtreecommitdiff
path: root/src/theming.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2013-06-09 03:45:10 +0200
committermathieui <mathieui@mathieui.net>2013-06-09 03:45:10 +0200
commit9eaffe1369f2be177576402f20edcd114a1eaa9d (patch)
tree7230d1ac073f3327964088395cec0f900fbf2710 /src/theming.py
parent9b8ed569bb202da1c1a7e88eff32152730b3f322 (diff)
downloadpoezio-9eaffe1369f2be177576402f20edcd114a1eaa9d.tar.gz
poezio-9eaffe1369f2be177576402f20edcd114a1eaa9d.tar.bz2
poezio-9eaffe1369f2be177576402f20edcd114a1eaa9d.tar.xz
poezio-9eaffe1369f2be177576402f20edcd114a1eaa9d.zip
Fix the os.makedirs calls so that they don’t traceback for nothing
Diffstat (limited to 'src/theming.py')
-rw-r--r--src/theming.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/theming.py b/src/theming.py
index c999ef2c..c26a4733 100644
--- a/src/theming.py
+++ b/src/theming.py
@@ -372,7 +372,7 @@ def reload_theme():
'poezio', 'themes')
themes_dir = os.path.expanduser(themes_dir)
try:
- os.makedirs(themes_dir)
+ os.makedirs(themes_dir, exist_ok=True)
except OSError:
pass
theme_name = config.get('theme', 'default')