Skip to content

Commit 9a14e55

Browse files
committed
convert classes to strings during serialization
1 parent 4cf2a7a commit 9a14e55

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

intake/catalog/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,8 @@ def serialize(self):
276276
kw = entry._captured_init_kwargs.copy()
277277
kw.pop('catalog', None)
278278
kw['parameters'] = {k.name: k.__getstate__()['kwargs'] for k in kw.get('parameters', [])}
279+
if not isinstance(kw['driver'], str):
280+
kw['driver'] = str(kw['driver']).split("'")[1]
279281
output["sources"][key] = kw
280282
return yaml.dump(output)
281283

0 commit comments

Comments
 (0)