Licenses: Updated the list of licenses and added a PDF containing all license texts
[check_mk.git] / .werks / 2548
blob590026eb8b579ee9407db5d9465484acd9dff4de
1 Title: Fixed exceptions in different places in case of user errors
2 Level: 1
3 Component: multisite
4 Class: fix
5 Compatible: compat
6 State: unknown
7 Version: 1.2.7i3
8 Date: 1440767834
10 In different places, e.g. during login errors it could happen that
11 exceptions like this occur:
13 AttributeError: MKUserError instance has no attribute 'message'
15 It seems that this occurance depends on the used Python version.
17 Internal note: Never use e.message to get the text of an exception.
18 Better directly put the exception into a string format: "%s" % e