Commit 87da77d3 authored by ibuler's avatar ibuler

[Bugfix] 修复replay目录不存在引起的bug

parent 28af7a0f
......@@ -154,6 +154,8 @@ class Coco:
return True
def func():
if not os.path.isdir(replay_dir):
return
for d in os.listdir(replay_dir):
date_path = os.path.join(replay_dir, d)
for filename in os.listdir(date_path):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment