Skip to content

Commit da33ed5

Browse files
committed
Fix hostname decode
1 parent eadc51e commit da33ed5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reportportal_client/logs/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def filter(self, record):
140140
hostname = urlparse(self.endpoint).hostname
141141
if hostname:
142142
if hasattr(hostname, 'decode') and callable(hostname.decode):
143-
if hostname.decode() in self.format(record):
143+
if hostname.decode('utf-8') in self.format(record):
144144
return False
145145
else:
146146
if str(hostname) in self.format(record):

0 commit comments

Comments
 (0)