Skip to content

Commit

Permalink
Fixed metsrw API misuse (METSDocument)
Browse files Browse the repository at this point in the history
Call to construct non-existent class `METSWriter` should use
`METSDocument`.
  • Loading branch information
jrwdunham committed Nov 8, 2017
1 parent 2c80200 commit 9ae818f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions storage_service/locations/models/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -834,8 +834,7 @@ def index_file_data_from_aip_mets(self):

path_to_mets, temp_dir = self.extract_file(relative_path)

mw = metsrw.mets.METSWriter()
mw.fromfile(path_to_mets)
mw = metsrw.METSDocument.fromfile(path_to_mets)

for fsentry in mw.all_files():
metadata = self._parse_file_metadata(fsentry)
Expand Down

0 comments on commit 9ae818f

Please sign in to comment.