Skip to content

Commit

Permalink
Connection.on_disconnect is called without parameters (e.g. in Connec…
Browse files Browse the repository at this point in the history
…ition.read) but Client.on_disconnect have required (and unused) 'callbacks' argument and this causes TypeErrors. This argument is removed.
  • Loading branch information
kmike committed Apr 16, 2011
1 parent d47eff4 commit 95edf3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brukva/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def on_connect(self):
if self.selected_db:
self.select(self.selected_db)

def on_disconnect(self, callbacks):
def on_disconnect(self):
raise ConnectionError("Socket closed on remote end")
####

Expand Down

0 comments on commit 95edf3a

Please sign in to comment.