Skip to content
Snippets Groups Projects
Commit 9d80f363 authored by Sam Kagan's avatar Sam Kagan
Browse files

Fixed bug in pf direct-copy error message

parent 1b8f7ff2
No related branches found
No related tags found
2 merge requests!1706merge 2.8.4 to main,!1646Fixed bug in pf direct-copy error message
Pipeline #15369 passed
......@@ -26,20 +26,17 @@ three of these:
Each of these is fairly stupid and just tries to fetch its one file, one time.
Retrying is not handled here, the RetryableFileFetcher is used for that.
"""
from pathlib import Path
import cx_Oracle
import sqlalchemy
from pathlib import Path
from pycapo import CapoConfig
from .exceptions import (
RetryableFetchError,
UnsatisfiableConstraint,
)
from .interfaces import FileFetcher, LocatedFile, FetchContext
from .exceptions import RetryableFetchError, UnsatisfiableConstraint
from .interfaces import FetchContext, FileFetcher, LocatedFile
from .locations import NgasFile, OracleXml
from .retry import retry
# pylint: disable=E0401, E0402, W0221
......@@ -67,7 +64,7 @@ class NgasDirectCopyFileFetcher(FileFetcher):
"""
# ensure that we actually can fetch
if not self.file.can_direct_copy(context):
raise UnsatisfiableConstraint(f"Direct copy to {self.destination} is not possible")
raise UnsatisfiableConstraint(f"Direct copy to {self.destination(context)} is not possible")
# check the destination
destination = context.check_and_prepare_destination(self.file)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment