Skip to content

rss2ipy: MissingPages object has no attribute repr

While downloading corrupted memory content, I got this:

[27, 24]
dev  24 |===============|100%    0kB   0.0kB/s       00s               W:0 E:0 Traceback (most recent call last):
  File "/home/gerrit/bin/python-packages/rss2ipy/__init__.py", line 659, in sample_decode
    if any([len(sheet[i][1]) != len(sheet[i + 1][1]) for i in [0, 1, 2]]):
  File "/home/gerrit/bin/python-packages/rss2ipy/__init__.py", line 659, in <listcomp>
    if any([len(sheet[i][1]) != len(sheet[i + 1][1]) for i in [0, 1, 2]]):
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/gerrit/bin/rss2i", line 3052, in _download
    rss, samples = rss2ipy.memory_decode(memory, frameCount)
  File "/home/gerrit/bin/python-packages/rss2ipy/__init__.py", line 841, in memory_decode
    fmt
  File "/home/gerrit/bin/python-packages/rss2ipy/__init__.py", line 782, in append_samples
    decodedSamples = sample_decode(sheet, fmt)
  File "/home/gerrit/bin/python-packages/rss2ipy/__init__.py", line 664, in sample_decode
    raise MissingPages("There were less than four sheets per result.")
rss2ipy.MissingPages: There were less than four sheets per result.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/gerrit/bin/rss2i", line 4573, in <module>
    main()
  File "/home/gerrit/bin/rss2i", line 4547, in main
    args.func(args)
  File "/home/gerrit/bin/rss2i", line 1461, in download
    _download(*localArg)
  File "/home/gerrit/bin/rss2i", line 125, in inner_func
    return f(*args, **kwargs)
  File "/home/gerrit/bin/rss2i", line 3058, in _download
    raise MemoryDecodeError(error=e.repr())
AttributeError: 'MissingPages' object has no attribute 'repr'

While the first two exceptions are due to that memory corruption, the last exception should not be thrown:

Traceback (most recent call last):
  File "/home/gerrit/bin/rss2i", line 4573, in <module>
    main()
  File "/home/gerrit/bin/rss2i", line 4547, in main
    args.func(args)
  File "/home/gerrit/bin/rss2i", line 1461, in download
    _download(*localArg)
  File "/home/gerrit/bin/rss2i", line 125, in inner_func
    return f(*args, **kwargs)
  File "/home/gerrit/bin/rss2i", line 3058, in _download
    raise MemoryDecodeError(error=e.repr())
AttributeError: 'MissingPages' object has no attribute 'repr'

Any ideas to fix this? Thank you! 😄