[all] re-apply black

This commit is contained in:
tobi-wan-kenobi 2020-05-04 20:12:02 +02:00
parent 98dd8ca5f7
commit 7aa201dd30
4 changed files with 29 additions and 13 deletions

View file

@ -116,9 +116,21 @@ if __name__ == "__main__":
main()
except Exception as e:
# really basic errors -> make sure these are shown in the status bar by minimal config
sys.stdout.write("{\"version\":1}\n[\n")
sys.stdout.write('{"version":1}\n[\n')
while True:
sys.stdout.write(json.dumps([{ "full_text": " {} ".format(e), "background": "#ff0000", "color": "#ffffff", "name": "error", "instance": "the-only-one" }]))
sys.stdout.write(
json.dumps(
[
{
"full_text": " {} ".format(e),
"background": "#ff0000",
"color": "#ffffff",
"name": "error",
"instance": "the-only-one",
}
]
)
)
sys.stdout.write(",\n")
sys.stdout.flush()
time.sleep(5)