diff --git a/slic/daq/pedestals.py b/slic/daq/pedestals.py index 8f67dc3d..59cf7004 100644 --- a/slic/daq/pedestals.py +++ b/slic/daq/pedestals.py @@ -86,7 +86,7 @@ def make_missing_dir(d): msg = "Directory \"{}\" does not exist, creating it...".format(d) print(msg) - os.makedirs(d) + os.makedirs(d, exist_ok=True) os.chmod(d, 0o775)