-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
32 lines (23 loc) · 740 Bytes
/
Copy pathmain.py
File metadata and controls
32 lines (23 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
from portal import IdentificationPortal
import traceback # NOQA: E402
from kivy.factory import Factory # NOQA: E402
# from kivy.logger import LOG_LEVELS, Logger # NOQA: E402
# Logger.setLevel(LOG_LEVELS["debug"])
# app version
__version__ = "1.0.0"
# from kivy.core.window import Window
# Window.minimum_width = 372
# Window.minimum_width = 632
# Window.size = (372, 632)
try:
IdentificationPortal().run()
except Exception:
error = traceback.format_exc()
"""
If the app encounters an error it automatically saves the
error in a file called ERROR.log.
You can use this for BugReport purposes.
"""
with open("ERROR.log", "w") as error_file:
error_file.write(error)
print(error)