Switch to f-string

This commit is contained in:
Serene-Arc 2021-04-04 09:20:22 +10:00 committed by Ali Parlakci
parent 1e1dae8eaa
commit f78856315d

View File

@ -47,4 +47,4 @@ class DownloadFactory:
elif re.match(url_beginning + r'.*/.*\.\w{3,4}$', url): elif re.match(url_beginning + r'.*/.*\.\w{3,4}$', url):
return Direct return Direct
else: else:
raise NotADownloadableLinkError('No downloader module exists for url {}'.format(url)) raise NotADownloadableLinkError(f'No downloader module exists for url {url}')