Fix cache not written without data

This commit is contained in:
Thor77 2017-09-26 11:15:41 +02:00
parent 40d851e9d7
commit 4c2a51bc5a
1 changed files with 1 additions and 1 deletions

View File

@ -177,5 +177,5 @@ def parse_logs(log_glob, ident_map=None, online_dc=True, cache_path=None):
if len(clients) >= 1:
# assemble Server-obj and yield
yield Server(virtualserver_id, clients)
if cache:
if cache is not None:
cache.write()