Uploaded image for project: 'Nuxeo Drive '
  1. Nuxeo Drive
  2. NXDRIVE-1729

[macOS] Use EAFP to catch FileNotFoundError in send_content_sync_status()

    XMLWordPrintable

    Details

    • Type: Clean up
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.1.3
    • Fix Version/s: 4.1.4
    • Component/s: OS Integration
    • Environment:
      macOS

      Description

      Those errors are not useful:

      2019-06-27 09:53:58 351 4718020032 ERROR    nxdrive.osi.darwin.darwin Error while trying to send status to FinderSync
      Traceback (most recent call last):
        File "osi/darwin/darwin.py", line 250, in send_content_sync_status
        File "osi/darwin/darwin.py", line 250, in <listcomp>
        File "osi/extension.py", line 134, in get_formatted_status
        File ".../pathlib.py", line 1158, in stat
        File ".../pathlib.py", line 387, in wrapped
      FileNotFoundError: [Errno 2] No such file or directory: '/Users/user/folder/file.pptx'
      

      Just ignore that error.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 10 minutes
                10m

                  PagerDuty