when the icon as resized it was always having a warning log. and modules did not have the icon.
for tracing, I commented out the Try and except. and found that it was raising an error
AttributeError: 'bytes' object has no attribute 'encode'
so with this PR, I have tried to solve the problem.
problem was from https://github.com/OCA/interface-github/blob/11.0/github_connector_odoo/models/odoo_module_version.py#L345
when the icon as resized it was always having a warning log. and modules did not have the icon. for tracing, I commented out the Try and except. and found that it was raising an error AttributeError: 'bytes' object has no attribute 'encode' so with this PR, I have tried to solve the problem.