improved error handling

This commit is contained in:
2021-08-13 12:10:15 -05:00
parent 52dbb8d17b
commit de6e5414eb
3 changed files with 18 additions and 11 deletions

View File

@@ -83,7 +83,8 @@ class MsgData:
LOGGER.warning(e)
if (new := await reaction_series(msg=msg)) is not None:
self.reactions = pd.concat([self.reactions, new.set_index(['msg id', 'emoji'])])
new = new.set_index(['msg id', 'emoji'])
self.reactions = pd.concat([self.reactions, new])
LOGGER.info(f'\n{str(new)}')
def emoji_messages(self, emoji_name: str, days: int):