From 0b667f55b7cc51967a976473aed1cd1444c43076 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Wed, 22 Jun 2016 20:40:30 +0200 Subject: [PATCH] check for None instead of False to allow empty clients as arg to tsstats.log._parse_details --- tsstats/log.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsstats/log.py b/tsstats/log.py index d86a057..5b3bf43 100644 --- a/tsstats/log.py +++ b/tsstats/log.py @@ -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