Skip to content

Commit

Permalink
better assert for null mountpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
karlicoss committed Mar 2, 2024
1 parent 7139892 commit 830a65c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/kobuddy/kobo_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def get_kobo_mountpoint(label: str='KOBOeReader') -> Optional[Path]:
kobos.append(mp)
mps = d.get('mountpoints')
if mps is not None:
assert all(p is not None for p in mps), (mps, d)
kobos.extend(mps)
else:
output = subprocess.check_output(('df', '-Hl')).decode('utf8')
Expand Down

0 comments on commit 830a65c

Please sign in to comment.