Spaces:
Sleeping
Sleeping
Tuchuanhuhuhu
commited on
Commit
·
f41581e
1
Parent(s):
44970ac
fix bug
Browse files- modules/utils.py +1 -1
modules/utils.py
CHANGED
@@ -583,7 +583,7 @@ def get_latest_filepath(dirname):
|
|
583 |
|
584 |
def get_history_filepath(username):
|
585 |
dirname = os.path.join(HISTORY_DIR, username)
|
586 |
-
os.
|
587 |
latest_file = get_latest_filepath(dirname)
|
588 |
if not latest_file:
|
589 |
latest_file = new_auto_history_filename(dirname)
|
|
|
583 |
|
584 |
def get_history_filepath(username):
|
585 |
dirname = os.path.join(HISTORY_DIR, username)
|
586 |
+
os.makedirs(dirname, exist_ok=True)
|
587 |
latest_file = get_latest_filepath(dirname)
|
588 |
if not latest_file:
|
589 |
latest_file = new_auto_history_filename(dirname)
|