Werk #2548: Fixed exceptions in different places in case of user errors

Component User interface
Title Fixed exceptions in different places in case of user errors
Date Aug 28, 2015
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 1.2.7i3
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

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

To the list of all Werks