From a0a67f59177a8c4484ed5ad39a5e14564808fb66 Mon Sep 17 00:00:00 2001 From: Bastian Germann Date: Tue, 29 Sep 2020 23:41:51 +0200 Subject: [PATCH] presentations: Prevent check_available returning None --- openlp/plugins/presentations/lib/keynotecontroller.py | 2 +- openlp/plugins/presentations/lib/powerpointmaccontroller.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/openlp/plugins/presentations/lib/keynotecontroller.py b/openlp/plugins/presentations/lib/keynotecontroller.py index 56e2542ab..8545df407 100644 --- a/openlp/plugins/presentations/lib/keynotecontroller.py +++ b/openlp/plugins/presentations/lib/keynotecontroller.py @@ -272,7 +272,7 @@ class KeynoteController(AppleScriptBaseController): return True except ValueError: pass - return False + return False class KeynoteDocument(AppleScriptBaseDocument): diff --git a/openlp/plugins/presentations/lib/powerpointmaccontroller.py b/openlp/plugins/presentations/lib/powerpointmaccontroller.py index 9b0dea237..5188be1df 100644 --- a/openlp/plugins/presentations/lib/powerpointmaccontroller.py +++ b/openlp/plugins/presentations/lib/powerpointmaccontroller.py @@ -308,6 +308,7 @@ class PowerPointMacController(AppleScriptBaseController): return False if major_version >= 15: return True + return False class PowerPointMacDocument(AppleScriptBaseDocument):