adding exception handling when DigitalOcean returns ERROR