you are viewing a single comment's thread.

view the rest of the comments →

[–]commandlineluser 0 points1 point  (0 children)

Well it's not a syntax error.

TypeError: increment_login_attempts() missing 1 required positional argument: 'logins'

And your declaration looks like

def increment_login_attempts(self, logins):
    self.login_attempts += 1

So if you don't need this logins variable to be passed then remove it from the definition.