diff options
author | Blake DeMarcy <ofunknowndescent@gmail.com> | 2017-04-12 09:26:04 -0500 |
---|---|---|
committer | Blake DeMarcy <ofunknowndescent@gmail.com> | 2017-04-12 09:26:04 -0500 |
commit | 3afbb00cff58d91b1a9e733f58dca601c53b2da2 (patch) | |
tree | 4bbfb507824bb42d2baec3ac28cd00040254c61a /clients/urwid/main.py | |
parent | 9dd542052863452dce392ce5450c0ae7503d9c1b (diff) | |
download | bbj-3afbb00cff58d91b1a9e733f58dca601c53b2da2.tar.gz |
__ACTUALLY__ fixed empty-db key errors
Diffstat (limited to 'clients/urwid/main.py')
-rw-r--r-- | clients/urwid/main.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clients/urwid/main.py b/clients/urwid/main.py index 5fcf84b..c5f0fb3 100644 --- a/clients/urwid/main.py +++ b/clients/urwid/main.py @@ -489,16 +489,17 @@ class App(object): if no_action: callback = ignore name = urwid_rainbows("~SYSTEM", True) + color = "0" else: callback = self.on_post name = urwid.Text("~{}".format(self.usermap[message["author"]]["user_name"])) + color = str(self.usermap[message["author"]]["color"]) post = str(message["post_id"]) head = urwid.Columns([ (2 + len(post), urwid.AttrMap( cute_button(">" + post, callback, message), "button", "hover")), - (len(name._text) + 1, urwid.AttrMap( - name, str(self.usermap[message["author"]]["color"]))), + (len(name._text) + 1, urwid.AttrMap(name, color)), urwid.AttrMap(urwid.Text(info), "dim") ]) |