[plotter] [galactica] [bug] fix error when arg is None

This commit is contained in:
Noe Brucy
2021-01-05 18:32:54 +01:00
parent 24ff79a729
commit fe62be0550
+3 -1
View File
@@ -72,8 +72,10 @@ class PlotRule(Rule):
return self.process_fn(arg, **kwargs)
def datafile(self, name, arg):
if arg is not None:
name = name + "_" + str(arg)
return Datafile(
name=name + "_" + arg,
name=name,
description=self.description + " ({})".format(arg),
)