Skip to content

MediaDownloader has no attribute 'global_counter' #34

@davidswelt

Description

@davidswelt
"""
Traceback (most recent call last):
  File "/opt/homebrew/Cellar/python@3.13/3.13.3/Frameworks/Python.framework/Versions/3.13/lib/python3.13/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
                    ~~~~^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/python@3.13/3.13.3/Frameworks/Python.framework/Versions/3.13/lib/python3.13/multiprocessing/pool.py", line 48, in mapstar
    return list(map(*args))
  File "/Users/dr/Projects/WallpapersFromReddit/downloaders.py", line 41, in download_post
    if MediaDownloader.global_counter.get_counter_value() >= MediaDownloader.max_posts_download:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'MediaDownloader' has no attribute 'global_counter'
"""

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