Skip to content

AttributeError: 'CachedSession' object has no attribute '_disabled' #284

@DocMAX

Description

@DocMAX
docmax@desktop: /mnt/pve/data/downloads/irc/done $ mnamer .
Starting mnamer

Processing Movie "Back.to.the.Future.1985.UHD.BluRay.DolbyVisionMP4.2160p.Multi.HEVC-d3g.mp4" (67.35GB)

============================== CRASH REPORT BEGIN ==============================

--------------------------------- environment ----------------------------------

 - date = 2023-11-20
 - platform = Linux-6.2.16-19-pve-x86_64-with-glibc2.38
 - arguments = ['.']
 - cache location = /home/docmax/.cache/mnamer-py3.11.sqlite
 - python version = 3.11.5
 - mnamer version = 2.5.5
 - appdirs version = 1.4.4
 - guessit version = 3.7.1
 - requests version = 2.31.0
 - requests cache version = 1.1.1
 - teletype version = 1.3.4

--------------------------------- stack trace ----------------------------------

Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/mnamer/__main__.py", line 23, in main
    frontend.launch()
  File "/usr/lib/python3.11/site-packages/mnamer/frontends.py", line 81, in launch
    self._process_targets()
  File "/usr/lib/python3.11/site-packages/mnamer/frontends.py", line 98, in _process_targets
    matches = target.query()
              ^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/mnamer/target.py", line 232, in query
    for idx, result in enumerate(results, start=1):
  File "/usr/lib/python3.11/site-packages/mnamer/providers.py", line 159, in search
    yield from results
  File "/usr/lib/python3.11/site-packages/mnamer/providers.py", line 181, in _search_name
    response = tmdb_search_movies(
               ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/mnamer/endpoints.py", line 190, in tmdb_search_movies
    status, content = request_json(url, parameters, cache=cache)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/mnamer/utils.py", line 259, in request_json
    initial_cache_state = session._disabled  # yes, i'm a bad person
                          ^^^^^^^^^^^^^^^^^
AttributeError: 'CachedSession' object has no attribute '_disabled'

=============================== CRASH REPORT END ===============================

Dang, it looks like mnamer crashed! Please consider filling an issue at
https://github.com/jkwill87/mnamer/issues along with this report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions