aboutsummaryrefslogtreecommitdiffstats
path: root/pycrctrl.py
diff options
context:
space:
mode:
Diffstat (limited to 'pycrctrl.py')
-rw-r--r--pycrctrl.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/pycrctrl.py b/pycrctrl.py
index 06dcb92..9361d61 100644
--- a/pycrctrl.py
+++ b/pycrctrl.py
@@ -77,8 +77,12 @@ class Updater(object):
def __init__(self, parent):
self.parent = parent
- with open(os.path.join(self.parent.path, "snapshot.id"), "rb") as fobj:
- self.__current_revision = fobj.read().decode("utf-8")
+ try:
+ with open(os.path.join(self.parent.path, "snapshot.id"), "rb") as fobj:
+ self.__current_revision = fobj.read().decode("utf-8")
+ except OSError:
+ pass
+
start_new_thread(self.checkForUpdates, ())
@property