Fix: Local variable s_indent might be referenced before defined

Sanity fix to make sure we do not hit UnboundLocalError and fail
terribly

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

Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
This commit is contained in:
Martin Basti 2016-06-01 15:26:43 +02:00
parent 3bac6de49e
commit 493ae1e502

View File

@ -324,6 +324,7 @@ class textui(backend.Backend):
if len(text) == 0:
text = [u'']
else:
s_indent = u''
text = [text]
self.print_indented(format % (attr, text[0]), indent)
for line in text[1:]: