Skip to content

Commit

Permalink
Nautilus: Guard against None state #6643
Browse files Browse the repository at this point in the history
It seems None gets assigned to 'state' in some paths.

(cherry picked from commit c9e97c1)
  • Loading branch information
ckamm committed Jul 16, 2018
1 parent 6c818ac commit 2a55b20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shell_integration/nautilus/syncstate.py
Expand Up @@ -214,8 +214,8 @@ def get_file_items(self, window, files):
# and we definitely don't want to show them for IGNORED.
shareable = False
state = entry['state']
state_ok = state.startswith('OK')
state_sync = state.startswith('SYNC')
state_ok = state and state.startswith('OK')
state_sync = state and state.startswith('SYNC')
if state_ok:
shareable = True
elif state_sync and isDir:
Expand Down

0 comments on commit 2a55b20

Please sign in to comment.