mirror of
https://github.com/dkmstr/openuds.git
synced 2024-12-22 13:34:04 +03:00
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