diff --git a/bot/helper/mirror_utils/upload_utils/gdriveTools.py b/bot/helper/mirror_utils/upload_utils/gdriveTools.py index 6bb1c94..8f7e815 100644 --- a/bot/helper/mirror_utils/upload_utils/gdriveTools.py +++ b/bot/helper/mirror_utils/upload_utils/gdriveTools.py @@ -246,7 +246,14 @@ class GoogleDriveHelper: def clone(self, link): self.transferred_size = 0 - file_id = self.getIdFromUrl(link) + try: + file_id = self.getIdFromUrl(link) + except KeyError: + msg = "Google drive ID could not be found in the provided link" + return msg + except IndexError: + msg = "Google drive ID could not be found in the provided link" + return msg msg = "" LOGGER.info(f"File ID: {file_id}") try: