Skip to content

browse/utils: Fix error when charset_normalizer.detect failed

The charset_normalizer.detect function can return a dict filled with None values when it failed to detect an encoding so ensure to add a None check to avoid runtime error when a content encoding cannot be detected.

Fixes SWH-WEBAPP-5S1.

Edited by Antoine Lambert

Merge request reports