From 347532daefd8e8cca52881742323a7d8ed713e31 Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Thu, 22 Jul 2021 19:48:02 +1000 Subject: [PATCH] fix up exception to not crash with further unset variables --- pa_job_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pa_job_manager.py b/pa_job_manager.py index f6353c4..54dc564 100644 --- a/pa_job_manager.py +++ b/pa_job_manager.py @@ -764,7 +764,7 @@ def MoveFileToNewFolderInStorage(job,move_me, dst_storage_path, dst_rel_path): os.replace( src, dst ) print( f"would mv {src} {dst}" ) except Exception as e: - print( f"ERROR: Failed to move file to new location on filesystem - which={src}, location={dir}, err: {e}") + print( f"ERROR: Failed to move file to new location on filesystem, err: {e}") # need these for AddDir calls below to work parent_dir=session.query(Dir).join(PathDirLink).filter(PathDirLink.path_id==dst_storage_path.id).first()