You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2021/12/14 20:14:17 UTC

[incubator-ponymail-foal] 01/02: Fix typing error

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git

commit e416fd3b496d3eaac7ea2d5c6435d65435c7d2de
Author: Sebb <se...@apache.org>
AuthorDate: Tue Dec 14 20:13:48 2021 +0000

    Fix typing error
---
 server/plugins/messages.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/server/plugins/messages.py b/server/plugins/messages.py
index 5c049c0..1e72bcc 100644
--- a/server/plugins/messages.py
+++ b/server/plugins/messages.py
@@ -515,6 +515,7 @@ async def get_activity_span(session: plugins.session.SessionObject, query_defuzz
     query_defuzzed = await filter_accessible(session, query_defuzzed)
 
     # Get oldest and youngest doc in single scan, as well as a monthly histogram
+    assert session.database, DATABASE_NOT_CONNECTED
     res = await session.database.search(
         index=session.database.dbs.db_mbox,
         size=0,