Skip to content

prepare_aruba_ap_switchport: Refactor error handling

There were many error handlers which did the same three steps: rollback the transaction, disconnect the database, raise an exception. To reduce code duplication, this commit now reduces these error handlers by just throwing an exception. This exception is caught by an exception handler which then handles the rollback and disconnect and throws the exception again.

Merge request reports