Browse Source

fix logic bug in platform module API version check

(cherry picked from commit 2bb23f00af44bba025abc3463cf6e88e1c4aeebe)
Thomas Waldmann 7 years ago
parent
commit
5c71c4f990
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/borg/helpers.py

+ 1 - 1
src/borg/helpers.py

@@ -139,7 +139,7 @@ def check_extension_modules():
         raise ExtensionModuleError
     if borg.crypto.low_level.API_VERSION != '1.1_02':
         raise ExtensionModuleError
-    if platform.API_VERSION != platform.OS_API_VERSION != '1.1_03':
+    if platform.API_VERSION != platform.OS_API_VERSION or platform.API_VERSION != '1.1_03':
         raise ExtensionModuleError
     if item.API_VERSION != '1.1_02':
         raise ExtensionModuleError