diff --git a/superflore/utils.py b/superflore/utils.py index 42a096f7..87c36864 100644 --- a/superflore/utils.py +++ b/superflore/utils.py @@ -55,8 +55,11 @@ def info(string): def make_dir(dirname): try: os.makedirs(dirname) - except: - pass + except OSError as e: + if e.errno == errno.EEXIST and os.path.isdir(dirname): + pass + else: + raise e def get_pkg_version(distro, pkg_name):