write function and share it
```
def backup_run
...
end

def content_run
...
end

def server_exception(server_run_function)
try:
  server_run_function()
catch:
  kuku
end


server_run_function(backup_run)
or
server_run_function(content_run)
```