Skip to content

Commit

Permalink
Raise NotImplementedError on the abstract methods of the base class
Browse files Browse the repository at this point in the history
  • Loading branch information
boiko committed Nov 8, 2023
1 parent 73e57d2 commit 668bba8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source_pool_fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,14 @@ def fetch_sources(self):
"""
Fetch new versions of sources to store locally.
"""
pass
raise NotImplementedError()

def ensure_package(self, collection, package, remove_contents=False):
"""
Ensures the package directory exists, if not, creates it.
:param collection: The collection
:param package: the package
:param remove_contents: clean up the package directory (useful for refreshing)
:return: A `Path` object to the directory
"""
collection_dir = self.target_dir / collection
Expand Down

0 comments on commit 668bba8

Please sign in to comment.