Verified Commit e5d2a48d authored by Ziirish's avatar Ziirish

fix: make sure to use the right data type

parent e3947441
......@@ -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(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment