Skip to content

Commit

Permalink
Dont validate checksum for inline models
Browse files Browse the repository at this point in the history
  • Loading branch information
mkepurcell committed Jan 8, 2021
1 parent 0709ef1 commit 217572c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pycloudmessenger/ffl/fflapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,14 +292,14 @@ def _download_model(self, location: dict):
return None

model = ModelWrapper.unwrap(location, self.context.model_serializer())
xsum = model.wrapping['xsum']
if not xsum:
raise fflabc.MalformedResponseException(f"Malformed wrapping (checksum): {model.wrapping}")

if model.blob:
#Embedded model
model = model.blob
else:
xsum = model.wrapping['xsum']
if not xsum:
raise fflabc.MalformedResponseException(f"Malformed wrapping (xsum): {model.wrapping}")

#Download from bin store
url = model.wrapping.get('url', None)
if not url:
Expand Down

0 comments on commit 217572c

Please sign in to comment.