diff --git a/src/music_kraken/objects/target.py b/src/music_kraken/objects/target.py index b979951..c84ebe3 100644 --- a/src/music_kraken/objects/target.py +++ b/src/music_kraken/objects/target.py @@ -1,5 +1,6 @@ from pathlib import Path from typing import List, Tuple, TextIO +import logging import requests from tqdm import tqdm @@ -8,6 +9,9 @@ from .parents import DatabaseObject from ..utils import shared +LOGGER = logging.getLogger("target") + + class Target(DatabaseObject): """ create somehow like that @@ -67,6 +71,7 @@ class Target(DatabaseObject): def copy_content(self, copy_to: "Target"): if not self.exists: + LOGGER.warning(f"No file exists at: {self.file_path}") return with open(self.file_path, "rb") as read_from: