Skip to content

Commit

Permalink
Tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
zimeon committed Dec 6, 2024
1 parent 69ec22a commit 465e837
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ocfl/new_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def _map_filepath(self, filepath):
vfilepath = make_unused_filepath(vfilepath, used)
return vfilepath

def add(self, src_path, logical_path, content_path=None, src_path_has_prefix=False):
def add(self, src_path, logical_path, content_path=None, src_path_has_prefix=False): # pylint: disable=unused-argument
"""Add a file to the new version.
Arguments:
Expand Down
2 changes: 1 addition & 1 deletion ocfl/object.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def version_dirs_and_metadata(self, src_fs, versions_metadata=None):
n = 1
for vn in sorted(versions.keys()):
if vn != n:
ObjectException("Bad version sequence (%s)" % (str(sorted(versions.keys()))))
raise ObjectException("Bad version sequence (%s)" % (str(sorted(versions.keys()))))
n += 1
# Go through versions in order building versions array, deduping
# files to include if selected
Expand Down

0 comments on commit 465e837

Please sign in to comment.