althonos / InstaLooter

Another API-less Instagram pictures and videos downloader.
GNU General Public License v3.0
2.01k stars 256 forks source link

'NoneType' object has no attribute '__getitem__' #279

Closed palumbo closed 4 years ago

palumbo commented 4 years ago

MacOS: 10.15.2 Instalooter 2.4.2 Python 2.7.16

When running python -m instalooter user <user> it will run for a few seconds, downloading about 5 images, then quit with this error.

020-01-11 16:18:35 MacBook-Pro.local instalooter.cli[91516] CRITICAL 'NoneType' object has no attribute '__getitem__'                                                                                                                        | 0/71 [00:00<?, ?it/s]
Traceback (most recent call last):
  File "/Library/Python/2.7/site-packages/instalooter/cli/__init__.py", line 173, in main
    dlpbar_cls=None if args['--quiet'] else TqdmProgressBar)
  File "/Library/Python/2.7/site-packages/instalooter/looters.py", line 470, in download
    new_only, condition)
  File "/Library/Python/2.7/site-packages/instalooter/looters.py", line 622, in _fill_media_queue
    if media['__typename'] == "GraphSidecar":
TypeError: 'NoneType' object has no attribute '__getitem__'
2020-01-11 16:18:35 MacBook-Pro.local instalooter.cli[91516] NOTICE Terminating 16 remaining workers...
                                                                                                                                                                                                                                                                           Exception KeyError: KeyError(<weakref at 0x10f34f520; to 'TqdmProgressBar' at 0x10f32d910>,) in <bound method TqdmProgressBar.__del__ of   0%|                                                                                                                                                                                                                                                 | 0/1 [00:13<?, ?it/s]> ignored
Exception KeyError: KeyError(<weakref at 0x10f326050; to 'TqdmProgressBar' at 0x10f32d9d0>,) in <object repr() failed> ignored
palumbo commented 4 years ago

Apologies, seems this might be a false alarm. It is now working as expected.