Browse Source

Fixed boolean returned as integer by adding an additional cast

Stefan Schmidt 6 years ago
parent
commit
922299db21
1 changed files with 1 additions and 1 deletions
  1. 1 1
      code/Attack/BaseAttack.py

+ 1 - 1
code/Attack/BaseAttack.py

@@ -250,7 +250,7 @@ class BaseAttack(metaclass=abc.ABCMeta):
         try:
             import distutils.core
             import distutils.util
-            value = distutils.util.strtobool(value.lower())
+            value = bool(distutils.util.strtobool(value.lower()))
             is_bool = True
         except ValueError:
             is_bool = False