check for None instead of False to allow empty clients as arg to tsstats.log._parse_details

This commit is contained in:
Thor77 2016-06-22 20:40:30 +02:00
parent def9f2e1e2
commit 0b667f55b7
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ def _parse_details(log_path, ident_map=None, clients=None, online_dc=True):
:return: parsed clients
:rtype: tsstats.client.Clients
'''
if not clients:
if clients is None:
clients = Clients(ident_map)
log_file = open(log_path)
# process lines