Fixed bug #353 Python3 XEP-0084 error

This commit is contained in:
Richard Kellner
2015-03-25 14:04:46 +01:00
parent 27582f6fd2
commit 81b7b2c190
2 changed files with 7 additions and 4 deletions

View File

@@ -63,7 +63,7 @@ class AvatarSetter(sleekxmpp.ClientXMPP):
avatar_file = None
try:
avatar_file = open(os.path.expanduser(self.filepath))
avatar_file = open(os.path.expanduser(self.filepath), 'rb')
except IOError:
print('Could not find file: %s' % self.filepath)
return self.disconnect()