Switch to f-string
This commit is contained in:
1 parent
1e1dae8eaa
commit
f78856315d
1 file changed
+1
-1
@@ -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}')
|
||||||
Reference in new issue
Block a user