Fixed a bug that prevents clearing old models
Corrects the error of clearing old models when the model directory contains directories with names that do not match a regular expression
This commit is contained in:
parent
7b6e465d57
commit
37dd22c89e
@ -355,7 +355,7 @@ class FreqaiDataDrawer:
|
|||||||
for dir in model_folders:
|
for dir in model_folders:
|
||||||
result = pattern.match(str(dir.name))
|
result = pattern.match(str(dir.name))
|
||||||
if result is None:
|
if result is None:
|
||||||
break
|
continue
|
||||||
coin = result.group(1)
|
coin = result.group(1)
|
||||||
timestamp = result.group(2)
|
timestamp = result.group(2)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user