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:
initrv 2022-09-14 03:40:13 +03:00
parent 7b6e465d57
commit 37dd22c89e

View File

@ -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)