Fix printing of DictObj
a6fbcbaec7 introduces a bug in
printing of DictObj. It brokes "weboob-config list",
"weboob-config modules", etc.
This commit is contained in:
parent
f9f6049019
commit
a37fcf448b
1 changed files with 1 additions and 1 deletions
|
|
@ -150,7 +150,7 @@ class IFormatter(object):
|
||||||
formatted = self.format_obj(obj, alias)
|
formatted = self.format_obj(obj, alias)
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
return OrderedDict(obj)
|
obj = OrderedDict(obj)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
raise TypeError('Please give a CapBaseObject or a dict')
|
raise TypeError('Please give a CapBaseObject or a dict')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue