Skip to content

Commit

Permalink
Use non-strict configparser to get userId (see #126)
Browse files Browse the repository at this point in the history
  • Loading branch information
bordaigorl committed Jan 17, 2022
1 parent 10c3865 commit 6f44dc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rmview/screenstream/screenshare.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def get_userid(self):
with sftp.file('/etc/remarkable.conf') as f:
file_content = f.read().decode()

cfg = configparser.ConfigParser()
cfg = configparser.ConfigParser(strict=False)
cfg.read_string(file_content)
offset = len('@ByteArray(')
token = cfg.get('General', 'devicetoken')[offset:-1]
Expand Down

0 comments on commit 6f44dc6

Please sign in to comment.