Commit ecb0dc76 authored by Arthur Lutz's avatar Arthur Lutz
Browse files

avoid traceback when stat file doesn't exist

parent 039ef37ddca5
......@@ -105,6 +105,8 @@ def extract_stats_dict(awstats_dir, filename):
}
}
'''
if not osp.isfile(osp.join(awstats_dir, filename)):
return {}
section_name = None
parsed_countdown = 0
stats_dict = {}
......
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