-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 4.1.0
-
Fix Version/s: 4.1.1
-
Component/s: Lock / Autolock
-
Environment:macOS
-
Epic Link:
-
Sprint:nxDrive 11.1.6
-
Story Points:0
Error
When looking for opened files in the Autolock, sometimes the NSWorkspace is no more existant (when Drive is quitting for instance). And we have this error:
TypeError: 'NoneType' object is not iterable (1 additional frame(s) were not displayed) ... File "nxdrive/autolocker.py", line 81, in _process File "nxdrive/autolocker.py", line 163, in get_open_files File "nxdrive/osi/darwin/files.py", line 58, in get_other_opened_files File "nxdrive/osi/darwin/files.py", line 38, in _get_opened_files_adobe_cc File "nxdrive/osi/darwin/files.py", line 20, in _is_running Unhandled error
Sentry Issue: NUXEO-DRIVE-PZ
Fix
- Add checks for NSWorkspace and running applications.
- Replace use of deprecated launchedApplications() with runningApplications().