FIX gracefully handle errors
This commit is contained in:
parent
a3f49433a3
commit
ea6d5e6042
|
@ -53,8 +53,11 @@ def write_output(status):
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
status = query_statuses()
|
try:
|
||||||
write_output(status)
|
status = query_statuses()
|
||||||
|
write_output(status)
|
||||||
|
except Exception as e:
|
||||||
|
print(str(e))
|
||||||
|
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Reference in New Issue