Closed nh2 closed 6 years ago
A, I see, this is because in this run I'm using Python 2.7. With Python 3.5 it works.
The project doesn't really say which Python versions are supported; up until client.servers().create
everything worked with both 2 and 3 so I assumed that it intends to work on both versions.
Sorry, I'm only intending on supporting Python3. Will add that to the documentation though.
Right now it doesn't seem to show error messages as returned by Hetzner:
Doing e.g.
will print
If before this line https://github.com/elsyms/hetznercloud-py/blob/182caf09f7ed397adeb284662e6e0edcfe6b9dfa/hetznercloud/servers.py#L46
you insert
we see:
So Hetzner tells us what the error is in
error.message
, and I guessHetznerActionException(result["error"] if result is not None else None)
is supposed to capture that and show it later, but further down the line a function is called with the wrong number of arguments so it crashes and doesn't show it.