1
0
mirror of https://github.com/Adam-Ant/drone-trigger synced 2024-06-14 04:57:24 +00:00

Print useful error message when exiting with no output

This commit is contained in:
Joe Groocock 2017-10-31 21:02:57 +00:00
parent dbebef95b8
commit 2d399044da
Signed by untrusted user: frebib
GPG Key ID: E0B16BEACFBB6A86

View File

@ -139,6 +139,7 @@ if __name__ == '__main__':
try:
curr_value = jsonVal(config[service].get('url'), config[service].get('structure'))
except:
print('Error: Could not get current value for ' + service)
exit(1)
print('Writing Initial value for ' + service + ': ' + curr_value)
config[service]['current_value'] = curr_value