forked from shaba/openuds
Fixed bug on case of exception on service saving
This commit is contained in:
parent
8088efa225
commit
ba45e4c6d6
@ -159,7 +159,8 @@ class Services(DetailHandler): # pylint: disable=too-many-public-methods
|
||||
self._deleteIncompleteService(service)
|
||||
raise RequestError(_('Input error: {0}'.format(unicode(e))))
|
||||
except Exception as e:
|
||||
self._deleteIncompleteService(service)
|
||||
if item is None:
|
||||
self._deleteIncompleteService(service)
|
||||
logger.exception('Saving Service')
|
||||
raise RequestError('incorrect invocation to PUT: {0}'.format(e))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user