Fix password preview (#2190)
This commit is contained in:
parent
474861c155
commit
2831c97338
|
|
@ -38,6 +38,8 @@ class FormattedOutput:
|
||||||
raise ValueError('Unsupported formatting call')
|
raise ValueError('Unsupported formatting call')
|
||||||
elif hasattr(o, 'table_data'):
|
elif hasattr(o, 'table_data'):
|
||||||
return o.table_data()
|
return o.table_data()
|
||||||
|
elif hasattr(o, 'json'):
|
||||||
|
return o.json()
|
||||||
elif is_dataclass(o):
|
elif is_dataclass(o):
|
||||||
return asdict(o)
|
return asdict(o)
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue