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 | ||
Level | Trivial Change | ||
Class | Bug Fix | ||
Compatibility | Compatible - no manual interaction needed | ||
Checkmk versions & editions |
|
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