mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2025-06-28 18:15:11 +00:00
Use new f-strings where possible
This commit is contained in:
@ -40,9 +40,9 @@ class FileManager: # pylint: disable=too-many-instance-attributes
|
||||
@workdir.setter
|
||||
def workdir(self, directory):
|
||||
if not exists(directory) or not isdir(directory):
|
||||
raise EnvironmentError('"{}" is not a directory!'.format(directory))
|
||||
raise EnvironmentError(f'"{directory}" is not a directory!')
|
||||
if not self._is_in_whitelisted_dir(directory):
|
||||
raise EnvironmentError('Directory "{}" is not in whitelist!'.format(directory))
|
||||
raise EnvironmentError(f'Directory "{directory}" is not in whitelist!')
|
||||
self._workdir = directory
|
||||
|
||||
@property
|
||||
|
Reference in New Issue
Block a user