check for None instead of False to allow empty clients as arg to tsstats.log._parse_details
This commit is contained in:
parent
def9f2e1e2
commit
0b667f55b7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue