davide-romanini / unrar-cffi

Python unrar cffi edition
Apache License 2.0
4 stars 1 forks source link

'RAROpenArchiveDataEx' object has no attribute 'OpenResult' #3

Closed bbtfr closed 4 years ago

bbtfr commented 4 years ago
from unrar.cffi import rarfile
rar = rarfile.RarFile('file_not_exists.rar')

will raise AttributeError: 'RAROpenArchiveDataEx' object has no attribute 'OpenResult'

https://github.com/davide-romanini/unrar-cffi/blob/3867d82d313b6eb39f47a30dc6d046a92231a4dc/unrar/cffi/unrarlib.py#L36-L37

seems archive.OpenResult should be archive.value.OpenResult ?