Skip to content

Commit

Permalink
Fix 'The user {0} is a dedicated web service user' missing .format()
Browse files Browse the repository at this point in the history
  • Loading branch information
nh2 committed Jun 20, 2017
1 parent 330ce55 commit e233c70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hetzner/robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def login(self, user=None, passwd=None, force=False):
if self.user.startswith("#ws+"):
raise WebRobotError("The user {0} is a dedicated web service user "
"and cannot be used for scraping the web user "
"interface.")
"interface.".format(self.user))

# This is primarily for getting a first session cookie.
response = self.request('/login', xhr=False)
Expand Down

0 comments on commit e233c70

Please sign in to comment.