Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix: Add ignore to decode (Nap)

Don't crash with unsupported encoding.
  • Loading branch information...
commit a14cf54af26339c73c80aa3479f783d8579e97ec 1 parent d234750
@xkilian xkilian authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  shinken/modules/livestatus_broker/livestatus_query.py
View
2  shinken/modules/livestatus_broker/livestatus_query.py
@@ -718,7 +718,7 @@ def make_filter(self, operator, attribute, reference):
if converter:
reference = converter(reference)
if isinstance(reference, str):
- reference = reference.decode("utf8")
+ reference = reference.decode('utf8','ignore')
attribute = 'lsm_' + attribute
# The filters are closures.
Please sign in to comment.
Something went wrong with that request. Please try again.