"git@developer.sourcefind.cn:OpenDAS/vision.git" did not exist on "3b450572da9365f22e6b551be57008f35506b181"
Unverified Commit fbf547cf authored by Guillem Orellana Trullols's avatar Guillem Orellana Trullols Committed by GitHub
Browse files

Proper error message (#3725)



* 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
Co-authored-by: default avatarPrabhat Roy <prabhatroy@fb.com>
parent 7bc5bd85
...@@ -374,8 +374,7 @@ def get_extensions(): ...@@ -374,8 +374,7 @@ def get_extensions():
library_found |= len(glob.glob(full_path)) > 0 library_found |= len(glob.glob(full_path)) > 0
if not library_found: if not library_found:
print('{0} header files were not found, disabling ffmpeg ' print(f'{library} header files were not found, disabling ffmpeg support')
'support')
has_ffmpeg = False has_ffmpeg = False
if has_ffmpeg: if has_ffmpeg:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment