From b741c0a9e90740b9120c33b1216dadff1f4a3eb9 Mon Sep 17 00:00:00 2001 From: Vinayak Mehta Date: Fri, 14 Aug 2020 02:35:50 +0530 Subject: [PATCH] Check for none and return none --- camelot/plotting.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/camelot/plotting.py b/camelot/plotting.py index 6d5def1..c35854b 100644 --- a/camelot/plotting.py +++ b/camelot/plotting.py @@ -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