Skip to content
Snippets Groups Projects
Commit c3a22e43 authored by Simon Künzel's avatar Simon Künzel
Browse files

Fix sorter exception catching

parent be04340f
No related branches found
No related tags found
No related merge requests found
Pipeline #6874 passed
Pipeline: job_controller

#6880

    Pipeline: job_controller

    #6879

      Pipeline: job_controller

      #6878

        +2
        ...@@ -359,7 +359,7 @@ def _sort_medium(session: SessionDb, own_job_id: int, db_path: str): ...@@ -359,7 +359,7 @@ def _sort_medium(session: SessionDb, own_job_id: int, db_path: str):
        # Set AFTER moving the file, as moving is more likely to throw exception than setting the variable # Set AFTER moving the file, as moving is more likely to throw exception than setting the variable
        # Note that with an exception the medium variables will still be updated in the database # Note that with an exception the medium variables will still be updated in the database
        medium.file_path = _get_db_path(dest_file) medium.file_path = _get_db_path(dest_file)
        except Exception as e: except IOError as e: # Don't catch stuff like database errors
        logger.error("Exception while sorting medium", exc_info=e) logger.error("Exception while sorting medium", exc_info=e)
        medium.sorter_error_message = f"Exception while sorting: {e}" medium.sorter_error_message = f"Exception while sorting: {e}"
        medium.lecture_id = None medium.lecture_id = None
        ......
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Please register or to comment