Skip to content

Commit

Permalink
server: bugfix ensure_dir_exists(path) did not expect path
Browse files Browse the repository at this point in the history
  • Loading branch information
David Hartmann authored and JackUrb committed Oct 21, 2022
1 parent ffdcde9 commit dbff1d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py/visdom/utils/shared_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ def get_new_window_id():


def ensure_dir_exists(path):
"""Make sure the parent dir exists for path so we can write a file."""
"""Make sure the dir exists so we can write a file."""
try:
os.makedirs(os.path.dirname(os.path.abspath(path)))
os.makedirs(os.path.abspath(path))
except OSError as e1:
assert e1.errno == 17 # errno.EEXIST

Expand Down

0 comments on commit dbff1d7

Please sign in to comment.