Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2a55b20

Browse files
committedJul 16, 2018
Nautilus: Guard against None state #6643
It seems None gets assigned to 'state' in some paths. (cherry picked from commit c9e97c1)
1 parent 6c818ac commit 2a55b20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎shell_integration/nautilus/syncstate.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,8 @@ def get_file_items(self, window, files):
214214
# and we definitely don't want to show them for IGNORED.
215215
shareable = False
216216
state = entry['state']
217-
state_ok = state.startswith('OK')
218-
state_sync = state.startswith('SYNC')
217+
state_ok = state and state.startswith('OK')
218+
state_sync = state and state.startswith('SYNC')
219219
if state_ok:
220220
shareable = True
221221
elif state_sync and isDir:

0 commit comments

Comments
 (0)