From 9eaffe1369f2be177576402f20edcd114a1eaa9d Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 9 Jun 2013 03:45:10 +0200 Subject: =?UTF-8?q?Fix=20the=20os.makedirs=20calls=20so=20that=20they=20do?= =?UTF-8?q?n=E2=80=99t=20traceback=20for=20nothing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/theming.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/theming.py') 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') -- cgit v1.2.3