diff --git a/server/src/uds/REST/methods/services.py b/server/src/uds/REST/methods/services.py index 9926880ac..697d95cf1 100644 --- a/server/src/uds/REST/methods/services.py +++ b/server/src/uds/REST/methods/services.py @@ -145,7 +145,8 @@ class Services(DetailHandler): # pylint: disable=too-many-public-methods except IntegrityError: # Duplicate key probably raise RequestError(_('Element already exists (duplicate key error)')) except coreService.ValidationException as e: - self._deleteIncompleteService(service) + if item is None: + self._deleteIncompleteService(service) raise RequestError(_('Input error: {0}'.format(unicode(e)))) except Exception as e: self._deleteIncompleteService(service)