1
0
mirror of https://github.com/Adam-Ant/drone-trigger synced 2025-06-20 05:55:33 +00:00

Print useful error message when exiting with no output

This commit is contained in:
2017-10-31 21:02:57 +00:00
parent dbebef95b8
commit 2d399044da

@ -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