Skip to content

Commit

Permalink
Merge pull request #989 from girder/file-access-in-handler
Browse files Browse the repository at this point in the history
Use open.read rather than download to access files in Girder.
  • Loading branch information
manthey authored Nov 10, 2022
2 parents 33b2dc1 + ebfcafe commit a400c44
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change Log

## 1.17.4

### Bug Fixes
- Use open.read rather than download to access files in Girder ([#989](../../pull/989))

## 1.17.3

### Changes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def process_annotations(event): # noqa: C901
logger.error('Could not load models from the database')
return
try:
data = orjson.loads(b''.join(File().download(file)()).decode())
data = orjson.loads(File().open(file).read().decode())
except Exception:
logger.error('Could not parse annotation file')
raise
Expand Down

0 comments on commit a400c44

Please sign in to comment.