Skip to content

Commit

Permalink
Use logging.warning() rather than its deprecated warn()
Browse files Browse the repository at this point in the history
  • Loading branch information
cbosdo committed Dec 22, 2022
1 parent f365734 commit be2e1ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions obs_maven/repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def parse_primary(self):
self._rpms = pickle.load(fd)
return
except OSError as error:
logging.warn("Error loading RPMs from cache: %s", error)
logging.warning("Error loading RPMs from cache: %s", error)

for cnt in range(1, 4):
try:
Expand Down Expand Up @@ -128,7 +128,7 @@ def parse_primary(self):
logging.debug("Caching RPMs in file: %s", cache_file)
pickle.dump(list(self._rpms), fw)
except OSError as error:
logging.warn("Error caching the primary XML data: %s", error)
logging.warning("Error caching the primary XML data: %s", error)

@property
def rpms(self):
Expand Down

0 comments on commit be2e1ec

Please sign in to comment.