Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Traceback when using saved scan file. #112

Open
sigwx opened this issue Mar 15, 2023 · 1 comment
Open

Traceback when using saved scan file. #112

sigwx opened this issue Mar 15, 2023 · 1 comment

Comments

@sigwx
Copy link

sigwx commented Mar 15, 2023

Encountered the following traceback when using a saved scan file (sorry, can't provide more data)

Traceback (most recent call last):
  File "/usr/local/bin/recuperabit", line 375, in <module>
    main()
  File "/usr/local/bin/recuperabit", line 372, in main
    interpret(cmd, arguments, parts, shorthands, args.outputdir)
  File "/usr/local/bin/recuperabit", line 182, in interpret
    logic.recursive_restore(myfile, part, partition_dir)
  File "/opt/RecuperaBit/recuperabit/logic.py", line 259, in recursive_restore
    recursive_restore(child, part, outputdir, make_dirs=False)
  File "/opt/RecuperaBit/recuperabit/logic.py", line 219, in recursive_restore
    content = node.get_content(part)
  File "/opt/RecuperaBit/recuperabit/fs/ntfs.py", line 381, in get_content
    dump = sectors(image, File.get_offset(self), FILE_size)
  File "/opt/RecuperaBit/recuperabit/utils.py", line 44, in sectors
    image.seek(offset * bsize)
TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'

I put a check in to only use offset if not None, and worked around it.

@Lazza
Copy link
Owner

Lazza commented Mar 18, 2023

Could you please open a pull-request to include your fix?

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants