diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-08-12 00:06:48 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-08-12 00:06:48 +0200 |
commit | 6d826f785a6bad1b9c8198fb438e65a443371422 (patch) | |
tree | 93e774dd64b374fcd9418cf1db746f5419d5d0b0 /bin/updater.py | |
parent | 4cb7a25f7034541899f2391a56461cb10f280c69 (diff) |
Update updater.py
dont exit when main thread fails but retry after 30 seconds
Diffstat (limited to 'bin/updater.py')
-rw-r--r-- | bin/updater.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/updater.py b/bin/updater.py index 5fbbf376d..5b782ab91 100644 --- a/bin/updater.py +++ b/bin/updater.py @@ -125,7 +125,8 @@ class Updater: except (ValueError, urllib.error.HTTPError) as e: print('%s: %s' % (self.base_url, e)) - exit(1) + print('Trying again in 30 seconds") + time.sleep(30) def main(): parser = argparse.ArgumentParser() |