Skip to content

Commit

Permalink
Fix update in this branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterKraus committed Oct 7, 2022
1 parent 0545dae commit 6e6b42c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/yadg/subcommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import yaml
import shutil
import hashlib
from dgbowl_schemas.yadg import to_dataschema, DataSchema_4_1
from dgbowl_schemas.yadg import to_dataschema, DataSchema
from . import core, dgutils


Expand Down Expand Up @@ -106,7 +106,7 @@ def update(args: argparse.Namespace) -> None:

logger.info("Writing new object into '%s'.", args.outfile)
with open(args.outfile, "w") as outfile:
if isinstance(outobj, DataSchema_4_1):
if isinstance(outobj, DataSchema):
json.dump(outobj.dict(), outfile, indent=1)
else:
json.dump(outobj, outfile, indent=1)
Expand Down

0 comments on commit 6e6b42c

Please sign in to comment.