Skip to content

Commit

Permalink
Merge 'Fix race condition creating log directory' (#2114)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjohnson57 committed Nov 8, 2023
2 parents cc2823f + d63f726 commit 7f1c988
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions OoTRandomizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ def start() -> None:
ts = time.time()
st = datetime.datetime.fromtimestamp(ts).strftime('%Y-%m-%d %H-%M-%S')
log_dir = local_path('Logs')
if not os.path.exists(log_dir):
os.makedirs(log_dir)
os.makedirs(log_dir, exist_ok=True)
log_path = os.path.join(log_dir, '%s.log' % st)
log_file = logging.FileHandler(log_path)
log_file.setFormatter(logging.Formatter('[%(asctime)s] %(message)s', datefmt='%H:%M:%S'))
Expand Down
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '7.1.208'
__version__ = '7.1.209'

# This is a supplemental version number for branches based off of main dev.
supplementary_version = 0
Expand Down

0 comments on commit 7f1c988

Please sign in to comment.