From 8124c7883215dae1db5495bbd0affcd9723b6023 Mon Sep 17 00:00:00 2001 From: Antoine Taillefer Date: Wed, 9 Dec 2015 17:34:43 +0100 Subject: [PATCH] NXDRIVE-433: Fix new upload API check against Nuxeo 7.3 --- nuxeo-drive-client/nxdrive/client/base_automation_client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nuxeo-drive-client/nxdrive/client/base_automation_client.py b/nuxeo-drive-client/nxdrive/client/base_automation_client.py index 0641b84f37..39b5689167 100644 --- a/nuxeo-drive-client/nxdrive/client/base_automation_client.py +++ b/nuxeo-drive-client/nxdrive/client/base_automation_client.py @@ -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)