summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--updater/__init__.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/updater/__init__.py b/updater/__init__.py
index eeef556..4ca30c3 100644
--- a/updater/__init__.py
+++ b/updater/__init__.py
@@ -1,7 +1,15 @@
import updater
+def start_updater():
+ try:
+ print("Updating system...")
+ updater.start()
+ except Error:
+ print("Updater failed, sorry!")
+
+
if __name__ == '__main__':
- updater.start()
+ start_updater()