diff --git a/metplotpy/plots/base_plot.py b/metplotpy/plots/base_plot.py index 0194bee8..c2825f48 100644 --- a/metplotpy/plots/base_plot.py +++ b/metplotpy/plots/base_plot.py @@ -355,7 +355,7 @@ def remove_file(self): image_name = self.get_config_value('plot_filename') # remove the old file if it exist - if os.path.exists(image_name): + if image_name is not None and os.path.exists(image_name): os.remove(image_name) def show_in_browser(self):