rest: use of python 'with' keyword to ensure close of socket and commit/abort of transaction

Merge request reports

Loading