From 465e837bd8b7f4bcdb80ab97f5e3fd661fd9b7dc Mon Sep 17 00:00:00 2001 From: Simeon Warner Date: Thu, 5 Dec 2024 19:44:50 -0500 Subject: [PATCH] Tidy --- ocfl/new_version.py | 2 +- ocfl/object.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ocfl/new_version.py b/ocfl/new_version.py index 9347575..24788c7 100644 --- a/ocfl/new_version.py +++ b/ocfl/new_version.py @@ -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: diff --git a/ocfl/object.py b/ocfl/object.py index 8d054fe..b447437 100755 --- a/ocfl/object.py +++ b/ocfl/object.py @@ -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