blob: 1c10e82fb3cad776617dcc8e7689703e59f40155 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
from cru import CruException
from ._app import create_app
def main():
app = create_app()
app.run_command()
if __name__ == "__main__":
try:
main()
except CruException as e:
user_message = e.get_user_message()
if user_message is not None:
print(f"Error: {user_message}")
exit(1)
else:
raise
|