Catch up on the latest product updates, best practices, and expert insights from the Checkmk Conference #12 – Watch the livestream recordings now

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
1.2.7i3 Checkmk Community, Checkmk Pro, Checkmk Ultimate MT

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