Exceptions

exception urwid.ExitMainLoop

When this exception is raised within a main loop, the main loop will exit cleanly.

exception urwid.WidgetError

Widget specific errors.

exception urwid.ListBoxError

ListBox related errors.

exception urwid.ColumnsError

Columns related errors.

exception urwid.PileError

Pile related errors.

exception urwid.GridFlowError

GridFlow specific error.

exception urwid.TableError

Table related errors.

exception urwid.TabsError

Tabs related errors.

exception urwid.BoxAdapterError

BoxAdapter related errors.

exception urwid.OverlayError

Overlay specific errors.

exception urwid.TextError

Error raised for invalid Text widget usage.

exception urwid.EditError

Edit related errors.

exception urwid.CanvasError

Raised for errors in canvas content or canvas cache management.

exception urwid.InputClosedError

Raised when the screen’s input reaches end of file.

A terminal that hangs up is one cause. It is a RuntimeError, so a handler that catches RuntimeError around MainLoop.run() catches it too.