abort program execution on not enough space exception
This commit is contained in:
parent
44138e941b
commit
c9ff14d013
1 changed files with 6 additions and 1 deletions
|
@ -70,7 +70,12 @@ 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)
|
||||||
app.run()
|
try:
|
||||||
|
app.run()
|
||||||
|
except Exception as e:
|
||||||
|
print(e)
|
||||||
|
return 0
|
||||||
|
|
||||||
new_data = {}
|
new_data = {}
|
||||||
new_data['stammdaten'] = dict(zip(app.sd2.keys(), map(lambda f: f.value, app.sd2.values())))
|
new_data['stammdaten'] = dict(zip(app.sd2.keys(), map(lambda f: f.value, app.sd2.values())))
|
||||||
new_data['finanzdaten'] = dict(zip(app.fin2.keys(), map(lambda f: f.value, app.fin2.values())))
|
new_data['finanzdaten'] = dict(zip(app.fin2.keys(), map(lambda f: f.value, app.fin2.values())))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue