fix
This commit is contained in:
@@ -62,9 +62,8 @@ class NassiShneidermanDiagram:
|
||||
def convert_to_image(self, output_path: str, on_conflict: Overwrite_behaviour=OB.SKIP) -> bool:
|
||||
i = 0
|
||||
for scope in self.function_scopes:
|
||||
cancel = one_line_progress_meter('Progress', i, len(self.function_scopes), '-PROGRESSBAR-')
|
||||
if not cancel:
|
||||
return False
|
||||
cancel = one_line_progress_meter('Progress', i+1, len(self.function_scopes), '-PROGRESSBAR-')
|
||||
|
||||
|
||||
filepath = f"{output_path}/{scope.name}"
|
||||
filepath = self.check_conflicts(filepath, on_conflict)
|
||||
@@ -79,6 +78,9 @@ class NassiShneidermanDiagram:
|
||||
except:
|
||||
logging.error(f"Failed to save image {filepath}. Unknown error")
|
||||
raise
|
||||
|
||||
if not cancel:
|
||||
return False
|
||||
i+=1
|
||||
return True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user