mirror of
https://github.com/Adam-Ant/drone-trigger
synced 2024-12-20 07:24:34 +00:00
Print useful error message when exiting with no output
This commit is contained in:
parent
dbebef95b8
commit
2d399044da
1
main.py
1
main.py
@ -139,6 +139,7 @@ if __name__ == '__main__':
|
|||||||
try:
|
try:
|
||||||
curr_value = jsonVal(config[service].get('url'), config[service].get('structure'))
|
curr_value = jsonVal(config[service].get('url'), config[service].get('structure'))
|
||||||
except:
|
except:
|
||||||
|
print('Error: Could not get current value for ' + service)
|
||||||
exit(1)
|
exit(1)
|
||||||
print('Writing Initial value for ' + service + ': ' + curr_value)
|
print('Writing Initial value for ' + service + ': ' + curr_value)
|
||||||
config[service]['current_value'] = curr_value
|
config[service]['current_value'] = curr_value
|
||||||
|
Loading…
Reference in New Issue
Block a user