From 3abbad1c0604741ee47c9b196ebe036a6195356f Mon Sep 17 00:00:00 2001 From: Miryam Schwartz Date: Thu, 28 Nov 2024 15:17:19 +0200 Subject: [PATCH] encapsulation --- plugins/ufm_log_analyzer_plugin/src/loganalyze/pdf_creator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ufm_log_analyzer_plugin/src/loganalyze/pdf_creator.py b/plugins/ufm_log_analyzer_plugin/src/loganalyze/pdf_creator.py index 73863b5e..01d0a55d 100644 --- a/plugins/ufm_log_analyzer_plugin/src/loganalyze/pdf_creator.py +++ b/plugins/ufm_log_analyzer_plugin/src/loganalyze/pdf_creator.py @@ -86,7 +86,7 @@ def add_list_of_dicts_as_text(self, data_list, title=None, headers=None): def add_dataframe_as_text(self, data_frame, title=None): """Adds a DataFrame to the PDF as aligned text without row numbers.""" - if data_frame is None or not isinstance(data_frame, pd.DataFrame) or data_frame.empty: + if not isinstance(data_frame, pd.DataFrame) or data_frame.empty: return if title: