This commit is contained in:
Frisk 2020-08-12 12:49:13 +02:00
parent 1f2fae3da9
commit e82d985d8f
No known key found for this signature in database
GPG key ID: 213F7C15068AF8AC
2 changed files with 1 additions and 1 deletions

View file

@ -384,6 +384,7 @@ async def discussion_handler():
def shutdown(loop, signal=None): def shutdown(loop, signal=None):
DBHandler.update_db() DBHandler.update_db()
db_cursor.close()
if len(messagequeue) > 0: if len(messagequeue) > 0:
logger.warning("Some messages are still queued!") logger.warning("Some messages are still queued!")
for task in asyncio.all_tasks(loop): for task in asyncio.all_tasks(loop):

View file

@ -194,7 +194,6 @@ async def essential_info(change: dict, changed_categories, local_wiki: Wiki, tar
rate_limiter: RateLimiter): rate_limiter: RateLimiter):
"""Prepares essential information for both embed and compact message format.""" """Prepares essential information for both embed and compact message format."""
_ = langs[target[0][0]]["wiki"].gettext _ = langs[target[0][0]]["wiki"].gettext
# recent_changes = RecentChangesClass() # TODO Look into replacing RecentChangesClass with local_wiki
changed_categories = changed_categories.get(change["revid"], None) changed_categories = changed_categories.get(change["revid"], None)
logger.debug("List of categories in essential_info: {}".format(changed_categories)) logger.debug("List of categories in essential_info: {}".format(changed_categories))
appearance_mode = embed_formatter if target[0][1] > 0 else compact_formatter appearance_mode = embed_formatter if target[0][1] > 0 else compact_formatter