Skip to content

Commit

Permalink
Fix missing file when downloading project. Fix issue with requirement…
Browse files Browse the repository at this point in the history
… version
  • Loading branch information
ruairif committed Nov 8, 2017
1 parent a760f84 commit ef0afa2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions portia_server/portia_api/utils/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@ def read_file(self, filename, deserialize=False):
except IOError as e:
if filename in ('items.json', 'extractors.json'):
return {} if deserialize else '{}'
elif filename in FILE_TEMPLATES:
return FILE_TEMPLATES[filename]
raise e
if deserialize and contents is not None:
return json.loads(contents)
Expand Down
2 changes: 1 addition & 1 deletion portia_server/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ dj-database-url==0.4.2
drf-nested-routers==0.11.1
dulwich==0.18.4
marshmallow==2.8.0
marshmallow_jsonapi==0.10.2
marshmallow_jsonapi==0.10.0
MySQL-python==1.2.5
requests==2.18.4
toposort==1.5
Expand Down

0 comments on commit ef0afa2

Please sign in to comment.