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

.check_fixity() does not work if fixity does not exist #11

Open
ghukill opened this issue Feb 19, 2019 · 0 comments
Open

.check_fixity() does not work if fixity does not exist #11

ghukill opened this issue Feb 19, 2019 · 0 comments

Comments

@ghukill
Copy link
Member

ghukill commented Feb 19, 2019

In [21]: obj.check_fixity()                                                                                                                                                                                                                                                                
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-21-c6745659dca2> in <module>
----> 1 obj.check_fixity()

~/pyocfl/pyocfl/pyocfl.py in check_fixity(self, fixity_algo, use_manifest_digest)
   1088 
   1089                 # get fixity digests
-> 1090                 fixity_old = self.object_inventory.fixity.get(fixity_algo,None)
   1091 
   1092                 if fixity_old != None:

AttributeError: 'NoneType' object has no attribute 'get'
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

1 participant