[all] re-apply black
This commit is contained in:
parent
98dd8ca5f7
commit
7aa201dd30
4 changed files with 29 additions and 13 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue