[main] Add error widget for 'all' errors
One exception: Wrong arguments aren't handled, because argparse doesn't throw in this circumstance.
This commit is contained in:
parent
0bae9e33bb
commit
f05098a120
1 changed files with 8 additions and 1 deletions
|
@ -63,6 +63,13 @@ def main():
|
||||||
output.draw('stop')
|
output.draw('stop')
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
try:
|
||||||
main()
|
main()
|
||||||
|
except Exception as e:
|
||||||
|
output = core.output.i3()
|
||||||
|
output.modules(core.module.Error(None, 'main', e))
|
||||||
|
output.draw('start')
|
||||||
|
output.update()
|
||||||
|
output.draw('statusline')
|
||||||
|
|
||||||
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
|
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
|
||||||
|
|
Loading…
Reference in a new issue