fix error regarding log

if no log is provided when adding data, use None
This commit is contained in:
chen 2016-10-17 18:24:26 -04:00
parent 703ae3c6d6
commit 51e408a5bf
1 changed files with 2 additions and 1 deletions

View File

@ -129,7 +129,8 @@ class H5Table(object):
print "***deleting old {} from {}".format(feature_name,
self.h5f_path)
except:
cmd_log += " [FRESH]"
# if no cmd log, None will used
cmd_log = str(cmd_log) + " [FRESH]"
h5f.create_dataset(h5f_path, data=dataset)
# store the cmd in log is possible
if cmd_log is not None: