Skip to content

Commit

Permalink
NXDRIVE-433: Fix new upload API check against Nuxeo 7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ataillefer committed Dec 9, 2015
1 parent c59226e commit 8124c78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nuxeo-drive-client/nxdrive/client/base_automation_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,8 @@ def init_upload(self):
log_details = self._log_details(e)
if isinstance(log_details, tuple):
status, code, _ = log_details
if status == 500 and code == 'com.sun.jersey.api.NotFoundException':
if status == 500 and code in ('com.sun.jersey.api.NotFoundException',
'org.nuxeo.ecm.webengine.model.TypeNotFoundException'):
raise NewUploadAPINotAvailable()
raise e
return self._read_response(resp, url)
Expand Down

0 comments on commit 8124c78

Please sign in to comment.