Handle HTTP erros in the list_rooms call
Changes to make it work on SublimeText 3