A man from Blackpool has been spared an immediate spell behind bars after his unsafe gas work put people’s lives at risk.