From 8d41a004c3dc5ba62abc2725f4b3cb34c02d9fb9 Mon Sep 17 00:00:00 2001 From: Qixiang Wan Date: Tue, 14 Feb 2017 16:36:32 +0800 Subject: [PATCH] minor change: remove an always true condition Signed-off-by: Qixiang Wan --- pungi/compose.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/pungi/compose.py b/pungi/compose.py index 9c3fbf3d..8e73855c 100644 --- a/pungi/compose.py +++ b/pungi/compose.py @@ -72,14 +72,13 @@ def get_compose_dir(topdir, conf, compose_type="production", compose_date=None, # break # already_exists_callbacks fallback: does target compose_dir exist? - if not exists: - try: - os.makedirs(compose_dir) - except OSError as ex: - if ex.errno == errno.EEXIST: - exists = True - else: - raise + try: + os.makedirs(compose_dir) + except OSError as ex: + if ex.errno == errno.EEXIST: + exists = True + else: + raise if exists: ci.compose.respin += 1