Skip to content
This repository
Browse code

Fix: Add ignore to decode (Nap)

Don't crash with unsupported encoding.
  • Loading branch information...
commit a14cf54af26339c73c80aa3479f783d8579e97ec 1 parent d234750
authored October 10, 2012
2  shinken/modules/livestatus_broker/livestatus_query.py
@@ -718,7 +718,7 @@ def make_filter(self, operator, attribute, reference):
718 718
             if converter:
719 719
                 reference = converter(reference)
720 720
             if isinstance(reference, str):
721  
-                reference = reference.decode("utf8")
  721
+                reference = reference.decode('utf8','ignore')
722 722
         attribute = 'lsm_' + attribute
723 723
 
724 724
         # The filters are closures.

0 notes on commit a14cf54

Please sign in to comment.
Something went wrong with that request. Please try again.