From 686e9975bc55c26cb217d6690890622b8e18eb01 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 15 Jan 2019 00:19:29 +0100 Subject: [PATCH] Not sure how or why but it works --- db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db.py b/db.py index 7e897269..8d83c09c 100644 --- a/db.py +++ b/db.py @@ -106,7 +106,7 @@ class Mini(object): for connection in chain: start = start.join(connection.mapper.class_) start = start.filter(Royal.id == royal.id) - mini = start.one() + mini = start.one_or_none() return mini