X-Git-Url: https://git.ralfj.de/lilass.git/blobdiff_plain/381dd16b7011170fac8413d93f0d175ef2f22c7a..refs/heads/master:/database.py diff --git a/database.py b/database.py index c65b4b9..e4ec011 100644 --- a/database.py +++ b/database.py @@ -60,7 +60,7 @@ class Database: _, intres, extres, mode, extprim = result intres = Resolution.fromDatabase(intres) # this method is safe for NULLs extres = Resolution.fromDatabase(extres) - mode = RelativeScreenPosition(mode) + mode = RelativeScreenPosition(mode) if mode else None extprim = bool(extprim) # 0 => False, 1 => True return ScreenSetup(intres, extres, mode, extprim) def __exit__(self, type, value, tb):