Updated to f string

This commit is contained in:
Dimitris Zlatanidis 2023-04-27 23:30:42 +03:00
parent e79bec17c0
commit 45ff5edf6c

View file

@ -286,8 +286,8 @@ class Slackbuilds(Configs):
package: str = max(packages)
except ValueError:
logger = logging.getLogger(LoggingConfig.date)
logger.exception('%s: %s:', self.__class__.__name__,
self.__class__.package_for_install.__name__)
logger.exception(f'{self.__class__.__name__}: '
f'{self.__class__.package_for_install.__name__}')
self.errors.raise_error_message(f"Package '{name}' not found for install", exit_status=20)
return package