Module: check_mk
Branch: master
Commit: a528220e4171af099b96314293265828af558b4a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a528220e4171af…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Aug 28 15:21:47 2015 +0200
In different places, e.g. during login errors it could happen that
exceptions like this occur:
AttributeError: MKUserError instance has no attribute 'message'
It seems that this occurance depends on the used Python version.
Internal note: Never use e.message to get the text of an exception.
Better directly put the exception into a string format: "%s" % e
Conflicts:
ChangeLog
web/htdocs/forms.py
---
.werks/2548 | 18 ++++++++++++++++++
ChangeLog | 1 +
web/htdocs/dashboard.py | 10 +++++-----
web/htdocs/forms.py | 12 ++++++------
web/htdocs/htmllib.py | 7 ++++++-
web/htdocs/login.py | 4 ++--
web/htdocs/mobile.py | 4 ++--
web/htdocs/valuespec.py | 2 +-
web/htdocs/views.py | 8 ++++----
web/htdocs/visuals.py | 12 ++++++------
web/htdocs/wato.py | 10 +++++-----
web/plugins/views/availability.py | 4 ++--
12 files changed, 58 insertions(+), 34 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=a528220e41…