fix
This commit is contained in:
@@ -104,7 +104,7 @@ class Gui:
|
|||||||
|
|
||||||
if file_is_empty:
|
if file_is_empty:
|
||||||
sg.popup_annoying('Our interpreter did not find anything. --> blame Kons or yourself!', title='Empty')
|
sg.popup_annoying('Our interpreter did not find anything. --> blame Kons or yourself!', title='Empty')
|
||||||
elif path:
|
if path:
|
||||||
fnames = output(path)
|
fnames = output(path)
|
||||||
sg.popup_annoying('Successfully created!', title='Created',
|
sg.popup_annoying('Successfully created!', title='Created',
|
||||||
auto_close_duration=2, auto_close=True, text_color='green')
|
auto_close_duration=2, auto_close=True, text_color='green')
|
||||||
@@ -118,11 +118,11 @@ class Gui:
|
|||||||
except JavaSyntaxError as JsE:
|
except JavaSyntaxError as JsE:
|
||||||
logging.error(
|
logging.error(
|
||||||
('||SyntaxError in Java File|| Failed to create Image with values = ' + str(values)))
|
('||SyntaxError in Java File|| Failed to create Image with values = ' + str(values)))
|
||||||
sg.popup_error((str(JsE)))
|
sg.popup_error(str(JsE))
|
||||||
except ScopeNotFoundException as SnFe:
|
except ScopeNotFoundException as SnFe:
|
||||||
logging.error(
|
logging.error(
|
||||||
('||ScopeNotFoundExeption|| Failed to create Image with values = ' + str(values)))
|
('||ScopeNotFoundExeption|| Failed to create Image with values = ' + str(values)))
|
||||||
sg.popup_error((str(SnFe)))
|
sg.popup_error(str(SnFe))
|
||||||
except FileNotFoundError as FnFe:
|
except FileNotFoundError as FnFe:
|
||||||
logging.error(
|
logging.error(
|
||||||
('||FileNotFoundError|| Failed to create Image with values = ' + str(values)))
|
('||FileNotFoundError|| Failed to create Image with values = ' + str(values)))
|
||||||
@@ -134,7 +134,7 @@ class Gui:
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
logging.error(
|
logging.error(
|
||||||
('Failed to create Image with values = ' + str(values)))
|
('Failed to create Image with values = ' + str(values)))
|
||||||
sg.popup_error(('Failed to create an image of one funktion correctly. ' + str(e)) + 'There may be some images created. ')
|
sg.popup_error(('Failed to create an image of one function correctly. ' + str(e)) + 'There may be some images created. ')
|
||||||
except:
|
except:
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
|||||||
@@ -62,6 +62,8 @@ class NassiShneidermanDiagram:
|
|||||||
cancel = one_line_progress_meter('Progress', number_of_item, len(self.function_scopes), '-PROGRESSBAR-')
|
cancel = one_line_progress_meter('Progress', number_of_item, len(self.function_scopes), '-PROGRESSBAR-')
|
||||||
if not cancel:
|
if not cancel:
|
||||||
return False
|
return False
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
filepath = f"{output_path}/{scope.name}"
|
filepath = f"{output_path}/{scope.name}"
|
||||||
filepath = self.check_conflicts(filepath, on_conflict)
|
filepath = self.check_conflicts(filepath, on_conflict)
|
||||||
|
|||||||
Reference in New Issue
Block a user