Fixed bug #353 Python3 XEP-0084 error
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user