Skip to content
Snippets Groups Projects
Commit a78b408c authored by Marc-Philipp Knechtle's avatar Marc-Philipp Knechtle
Browse files

switch load with loads because of string object to check

parent 0901200c
No related merge requests found
......@@ -61,7 +61,7 @@ def handle_file_in_input_dir(args, db, filename, input_dir):
doc: Document = utility.handle_incoming_file_with_optional_force(filepath, args.force_strategy)
logger.info("Validating created json by running it through the shared-file-format decoding mechanism.")
decoded_doc: Document = decoder.load(doc.to_json())
decoded_doc: Document = decoder.loads(doc.to_json())
logger.info("Filename from created shared-file-format document: " + decoded_doc.filename)
if doc is None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment