```
import multiprocessing.pool
import functools
import time
import sys
def timeout(max_timeout):
    def timeout_decorator(item):
        @functools.wraps(item)
        def func_wrapper(*args, **kwargs):
            pool = multiprocessing.pool.ThreadPool(processes=1)
            async_result = pool.apply_async(item, args, kwargs)
            return async_result.get(max_timeout)
        return func_wrapper
    return timeout_decorator

```

I got this code from SE. This raises the timeout error from system level.
How could i handle this error and do something else when error pops up

Please Note Am a newbie in python.
Thanks in advance