get_os_stats catches typeerror

Signed-off-by: Marco Milanesio <milanesio.marco@gmail.com>