diff --git a/common/utils.py b/common/utils.py index afabe1d..d733e62 100644 --- a/common/utils.py +++ b/common/utils.py @@ -751,6 +751,7 @@ def ping_avg_time(nameserver): :param nameserver: :return: """ + check_dir(settings.temp_save_dir) temp_path = settings.temp_save_dir.joinpath('ping') ping(nameserver, path=temp_path) with open(temp_path, 'r')as f: