messages: specify message type for ResultFormattingError

the ResultFormattingError message class was missing a `type` member which
could cause `otptoken-add` command to crash during QR image rendering using
suboptimal TTY settings

https://fedorahosted.org/freeipa/ticket/6081

Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
Martin Babinsky authored and Petr Vobornik committed 2016-07-15 13:55:36 +02:00
1 parent 2f02ffed03
commit a5c8c9880d
1 file changed
+1
+1
View File
@@ -363,6 +363,7 @@ class ResultFormattingError(PublicMessage):
"""
**13019** Unable to correctly format some part of the result
"""
type = "warning"
errno = 13019