Werk #2548: Fixed exceptions in different places in case of user errors
Komponente | User interface |
Titel | Fixed exceptions in different places in case of user errors |
Datum | 28.08.2015 |
Checkmk Edition | Checkmk Raw (CRE) |
Checkmk-Version | 1.2.7i3 |
Level | Kleine Änderung |
Klasse | Bugfix |
Kompatibilität | Kompatibel - benötigt kein manuelles Eingreifen |
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