qvm-sync-clock: Do not fail if clockvm is not set

This commit is contained in:
M. Vefa Bicakci 2020-03-03 22:02:47 -05:00
parent 16bdeea2c0
commit 7980d94807
No known key found for this signature in database
GPG Key ID: 1DF87CE3B3A5DFAF

View File

@ -32,6 +32,9 @@ def main():
app = Qubes() app = Qubes()
clockvm = app.clockvm clockvm = app.clockvm
if not clockvm:
sys.exit(0)
if not clockvm.is_running(): if not clockvm.is_running():
sys.stderr.write('ClockVM {} is not running, aborting.\n'.format( sys.stderr.write('ClockVM {} is not running, aborting.\n'.format(
clockvm.name)) clockvm.name))