Skip to content

Commit

Permalink
sendImage error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
carpedm20 committed Mar 24, 2015
1 parent 46475fa commit 4cd5fe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion line/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def sendImage(self, path):
try:
img = open(path, 'r')

message = Message(to=self.id, text=text)
message = Message(to=self.id, text=None)
message.contentType = ContentType.IMAGE
message.contentPreview = img.read().encode('utf-8')

Expand Down

0 comments on commit 4cd5fe7

Please sign in to comment.