Uploaded image for project: 'Picard'
  1. Picard
  2. PICARD-2754

Picard crashes in non-existing working directory on start

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 2.10.0rc1
    • None
    • None
    • None

      Importance: low.

      picard crashes in non-existing directories with the following error message:

       

       

      Traceback (most recent call last):
        File "/usr/local/bin/picard", line 5, in <module>
          main('/usr/share/locale', True)
        File "/usr/local/lib64/python3.12/site-packages/picard/tagger.py", line 1508, in main
          picard_args = process_picard_args()
                        ^^^^^^^^^^^^^^^^^^^^^
        File "/usr/local/lib64/python3.12/site-packages/picard/tagger.py", line 1472, in process_picard_args
          x = os.path.abspath
              ^^^^^^^^^^^^^^^^^^
        File "<frozen posixpath>", line 423, in abspath
      FileNotFoundError: [Errno 2] No such file or directory
       
      

       

      Of course this doesn't happen that often, but it should throw a decent error message.

      To reproduce: mkdir foobar; cd foobar; sleep 10; picard .

      And whilst waiting open another terminal and rm foobar.

            outsidecontext Philipp Wolfer
            hanb Han Boetes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Version Package
                2.10.0rc1