While improving the error handling in the rapp manager for issue #68, it took me a while to do the right exception handling. Only when I realised that CapabilityServer.__catch_and_log() redefines the RuntimeError exception raised by CapabilityServer.__free_capability(), I understood why my RuntimeError catching didn't work.
I'm under the assumption that doing a catch all via except Exception is bad practise. So, I'm wondering if __catch_and_log should be changed.
While improving the error handling in the rapp manager for issue #68, it took me a while to do the right exception handling. Only when I realised that
CapabilityServer.__catch_and_log()redefines theRuntimeErrorexception raised byCapabilityServer.__free_capability(), I understood why myRuntimeErrorcatching didn't work.I'm under the assumption that doing a catch all via
except Exceptionis bad practise. So, I'm wondering if__catch_and_logshould be changed.