From a47f2c06acb2a9d943b0a6a7cf41f90c8520f46d Mon Sep 17 00:00:00 2001 From: weckyy702 Date: Tue, 5 Jan 2021 00:48:29 +0100 Subject: [PATCH] fixed NSD --- interpreter/NassiShneidermann.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/interpreter/NassiShneidermann.py b/interpreter/NassiShneidermann.py index 0cc1400..a4612d2 100644 --- a/interpreter/NassiShneidermann.py +++ b/interpreter/NassiShneidermann.py @@ -58,7 +58,7 @@ class NassiShneidermanDiagram: return filepath return filepath - def convert_to_image(self, output_path: str, on_conflict: Overwrite_behaviour=OB.SKIP): + def convert_to_image(self, output_path: str, on_conflict: Overwrite_behaviour=OB.SKIP) -> bool: number_of_item = 1 for scope in self.function_scopes: number_of_item += 1 @@ -79,6 +79,7 @@ class NassiShneidermanDiagram: except: logging.error(f"Failed to save image {filepath}. Unknown error") raise + return True def load_from_file(self, filepath:str, itp_custom_tags: Optional[Dict[str, List[str]]]): itp = JavaInterpreter(filepath)