diff options
author | Christian Kamm <mail@ckamm.de> | 2018-07-16 10:57:09 +0300 |
---|---|---|
committer | ckamm <mail@ckamm.de> | 2018-07-16 11:18:48 +0300 |
commit | c9e97c12cd8ea94e80ad0dc3909af3c5c7ebf2c7 (patch) | |
tree | 4f2d26411041895a20d1392bc02a21297473129b /shell_integration | |
parent | c620683251037f3b5498a741da2af7989d86087f (diff) |
Nautilus: Guard against None state #6643
It seems None gets assigned to 'state' in some paths.
Diffstat (limited to 'shell_integration')
-rw-r--r-- | shell_integration/nautilus/syncstate.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell_integration/nautilus/syncstate.py b/shell_integration/nautilus/syncstate.py index bef94e56c..4453a82b9 100644 --- a/shell_integration/nautilus/syncstate.py +++ b/shell_integration/nautilus/syncstate.py @@ -293,8 +293,8 @@ class MenuExtension_ownCloud(GObject.GObject, Nautilus.MenuProvider): # 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: |