Merge branch 'handle-not-enough-space-exception' into refactor-datamodel
This commit is contained in:
commit
d3531342f3
1 changed files with 8 additions and 2 deletions
|
@ -52,7 +52,13 @@ def main(*_args):
|
||||||
else:
|
else:
|
||||||
member_struct = json.load(open('example.json', 'r'))
|
member_struct = json.load(open('example.json', 'r'))
|
||||||
app = FormApp(member_struct)
|
app = FormApp(member_struct)
|
||||||
|
|
||||||
|
try:
|
||||||
app.run()
|
app.run()
|
||||||
|
except Exception as e:
|
||||||
|
print(e)
|
||||||
|
return 0
|
||||||
|
|
||||||
if app.data_has_changed():
|
if app.data_has_changed():
|
||||||
out_data = app.get_data_from_form()
|
out_data = app.get_data_from_form()
|
||||||
outfile_name = app.get_filename()
|
outfile_name = app.get_filename()
|
||||||
|
|
Loading…
Reference in a new issue