From 93f0c3f7a3d420c20295eb2e1da4c2627099e0b3 Mon Sep 17 00:00:00 2001 From: Sam Birch Date: Tue, 22 Jul 2014 23:44:50 -0400 Subject: print -> return I think this is supposed to be a return rather than a print. Print returns none and string serialization fails. --- pushover.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pushover.py b/pushover.py index f6f8e98..fc9942e 100644 --- a/pushover.py +++ b/pushover.py @@ -86,7 +86,7 @@ class Request: raise RequestError(self.answer["errors"]) def __str__(self): - print self.answer + return self.answer class MessageRequest(Request): """Class representing a message request to the Pushover API. You do not -- cgit v1.2.3-70-g09d2