fix: make sure to use the right data type

This commit is contained in:
ziirish 2019-05-15 18:25:08 +02:00
parent e394744162
commit e5d2a48d65
No known key found for this signature in database
GPG key ID: 72DB229A64B54E46

View file

@ -82,18 +82,18 @@ class Monitor(object):
cmd = [self.burpbin, '-V']
version = None
try:
version = subprocess.check_output(
version = to_unicode(subprocess.check_output(
cmd,
stderr=subprocess.DEVNULL
).rstrip()
)).rstrip()
except subprocess.CalledProcessError:
pass
if version is None:
cmd = [self.burpbin, '-v']
version = subprocess.check_output(
version = to_unicode(subprocess.check_output(
cmd,
stderr=subprocess.DEVNULL
).rstrip()
)).rstrip()
if version < BURP_MINIMAL_VERSION and \
getattr(self.app, 'strict', True):
self.logger.critical(