Skip to content
Snippets Groups Projects
Commit 75d827e4 authored by Brady James Garvin's avatar Brady James Garvin
Browse files

Extracted main function.

parent 9181a416
Branches
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ class MoviesApp(App):
self.root.ids.message.text = 'Database error: {exception}'.format(exception=exception)
if __name__ == "__main__":
def main():
try:
app = MoviesApp()
app.run()
......@@ -48,3 +48,7 @@ if __name__ == "__main__":
print('Initial database connection failed!', file=stderr)
print('Cause: {exception}'.format(exception=exception), file=stderr)
exit(1)
if __name__ == "__main__":
main()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment