service: In dialog list: support entries with unknown names (shouldn't happen)
patch 039674332424c9792bcc0ef23d43f47dd7189644
Author: E. Bosch <presidev@AT@gmail.com>
Date: Sat Mar 18 05:12:31 CET 2023
* service: In dialog list: support entries with unknown names (shouldn't happen)
hunk ./service.py 89
- name_in_irc = self.tmp_ircnick if id == self.tg.id else self.tg.tid_to_iid[id]
+ if id == self.tg.id:
+ name_in_irc = self.tmp_ircnick
+ else:
+ if id in self.tg.tid_to_iid.keys():
+ name_in_irc = self.tg.tid_to_iid[id]
+ else:
+ name_in_irc = '<Unknown>'