Skip to content

Not checking for None return from getlocale() in python/tmdb3/tmdb3/lookup.py #1229

@mcampin

Description

@mcampin
  • Linux 6.14.0-33-generic Have mythtranscode report aac_latm #33~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 19 17:02:30 UTC 2 x86_64 x86_64 x86_64 GNU/Linux:

  • MythTV 34:

  • mythtv-34.0+fixes.20240210.e3e165a1:

  • tmdb3/Python:

What steps will reproduce the bug?

I was able to reproduce this failure outside of mythtv using the following:
unset LANG
export LC_ALL=C
/usr/share/mythtv/metadata/Movie/tmdb3.py -l en -a US -D 575265

Note: export LC_ALL=C.utf-8 works.

How often does it reproduce? Is there a required condition?

It happens for retrieving details for movies. When this happens the code falls through to series, so retrieving details for series/TV works.

What is the expected behaviour?

Works when locale is "C".

What do you see instead?

Additional information

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions