[arch] fix: date parsing when checking for updates (AUR)

This commit is contained in:
Vinicius Moreira
2022-05-27 10:11:01 -03:00
parent 4d1a118b25
commit 95b0e5d45e
3 changed files with 13 additions and 6 deletions

View File

@@ -492,9 +492,9 @@ class ArchManager(SoftwareManager, SettingsController):
try:
pkg.install_date = datetime_as_milis(parse_date(install_date))
except ValueError:
self.logger.error("Could not parse 'install_date' ({}) from AUR package '{}'".format(install_date, pkg.name))
self.logger.error(f"Could not parse 'install_date' ({install_date}) from AUR package '{pkg.name}'")
else:
self.logger.error("AUR package '{}' install_date was not retrieved".format(pkg.name))
self.logger.error(f"AUR package '{pkg.name}' install_date was not retrieved")
return self.aur_mapper.check_update(pkg=pkg, last_modified=api_data['LastModified'])