Rename typo s/fb/fd/ in remote_control.
This commit is contained in:
parent
6b22dd6ade
commit
85aa5efb12
|
@ -909,7 +909,7 @@ class SignalObject(dbus.service.Object):
|
||||||
else:
|
else:
|
||||||
invalid_file = True
|
invalid_file = True
|
||||||
if not invalid_file and filesize < 16384:
|
if not invalid_file and filesize < 16384:
|
||||||
with open(picture, 'rb') as fb:
|
with open(picture, 'rb') as fd:
|
||||||
data = fd.read()
|
data = fd.read()
|
||||||
avatar = base64.b64encode(data).decode('utf-8')
|
avatar = base64.b64encode(data).decode('utf-8')
|
||||||
avatar_mime_type = mimetypes.guess_type(picture)[0]
|
avatar_mime_type = mimetypes.guess_type(picture)[0]
|
||||||
|
|
Loading…
Reference in New Issue