From e5d2a48d6525b2729552d2416413afd72f0521e4 Mon Sep 17 00:00:00 2001 From: ziirish Date: Wed, 15 May 2019 18:25:08 +0200 Subject: [PATCH] fix: make sure to use the right data type --- burpui/misc/backend/utils/burp2.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/burpui/misc/backend/utils/burp2.py b/burpui/misc/backend/utils/burp2.py index 13e9d1ee..0d5e3305 100644 --- a/burpui/misc/backend/utils/burp2.py +++ b/burpui/misc/backend/utils/burp2.py @@ -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(