Itxaka/pyapi-gitlab — pull request #100 by elho (2014-10-09 14:53:16+00:00)
Title: avoid IndexError when empty host argument is given

When the host argument passed to __inint__ is an empty string, tryping to access host[-1] raises an IndexError.
As an empty hostname is not valid anyway, a ValueError with an according error meassage is raised instead.