Module: check_mk
Branch: master
Commit: 23fa74b3dddd0518022f2706e717c1c426f3b35e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=23fa74b3dddd05…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Feb 28 10:53:50 2017 +0100
4402 FIX Fixed possible UnicodeEncodeError on service discovery page
Change-Id: If75e12c627fb3398781436332e5b6ce28bf59fb4
---
.werks/4402 | 10 ++++++++++
modules/automation.py | 2 +-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/4402 b/.werks/4402
new file mode 100644
index 0000000..785a095
--- /dev/null
+++ b/.werks/4402
@@ -0,0 +1,10 @@
+Title: Fixed possible UnicodeEncodeError on service discovery page
+Level: 1
+Component: multisite
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1488275610
+Class: fix
+
+
diff --git a/modules/automation.py b/modules/automation.py
index 27f3ca5..0380f0a 100644
--- a/modules/automation.py
+++ b/modules/automation.py
@@ -135,7 +135,7 @@ def do_automation(cmd, args):
if cmk.debug.enabled():
raise
else:
- sys.stderr.write("%s\n" % e)
+ sys.stderr.write("%s\n" % make_utf8("%s" % e))
output_profile()
sys.exit(2)