Use f-strings in more places that were missed.

This commit is contained in:
Rapptz committed 2021-04-08 06:02:47 -04:00
1 parent c3e0b6e123
commit 99fc950510
34 files changed
+220 -143

No files matched your search

+1 -1
View File
@@ -144,7 +144,7 @@ class FFmpegAudio(AudioSource):
executable = args.partition(' ')[0] if isinstance(args, str) else args[0]
raise ClientException(executable + ' was not found.') from None
except subprocess.SubprocessError as exc:
raise ClientException('Popen failed: {0.__class__.__name__}: {0}'.format(exc)) from exc
raise ClientException(f'Popen failed: {exc.__class__.__name__}: {exc}') from exc
else:
return process