Skip to content

Commit eee1e84

Browse files
cpuhrschprabhat00155
authored andcommitted
[fbsync] Proper error message (#3725)
Summary: * Proper error message Now when there are missing ffmpeg libraries the error displayed is: ``` {0} header files were not found, disabling ffmpeg. ``` This is because the missing `.format`. This PR fixes the warning message by appending the proper format operation. * Use f-string Reviewed By: NicolasHug Differential Revision: D28169143 fbshipit-source-id: 205f5467c92a9d5d930d6e28e20ba9b02980120b Co-authored-by: Prabhat Roy <[email protected]>
1 parent 9e5667b commit eee1e84

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,8 +374,7 @@ def get_extensions():
374374
library_found |= len(glob.glob(full_path)) > 0
375375

376376
if not library_found:
377-
print('{0} header files were not found, disabling ffmpeg '
378-
'support')
377+
print(f'{library} header files were not found, disabling ffmpeg support')
379378
has_ffmpeg = False
380379

381380
if has_ffmpeg:

0 commit comments

Comments
 (0)