Check for none and return none

This commit is contained in:
Vinayak Mehta
2020-08-14 02:35:50 +05:30
parent f8b6181988
commit b741c0a9e9
+2 -1
View File
@@ -45,8 +45,9 @@ class PlotMethods(object):
plot_method = getattr(self, kind)
fig = plot_method(table)
if filename:
if filename is not None:
fig.savefig(filename)
return None
return fig