From 561dc690489a343c28695b090a017c953dd237b7 Mon Sep 17 00:00:00 2001 From: offish Date: Mon, 18 Oct 2021 11:01:17 +0200 Subject: [PATCH] v1.0.11 (#24) * revert error_message change * revert error_message change --- opplast/__init__.py | 2 +- opplast/upload.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/opplast/__init__.py b/opplast/__init__.py index 7a400f9..10f0afe 100644 --- a/opplast/__init__.py +++ b/opplast/__init__.py @@ -1,5 +1,5 @@ __name__ = "opplast" -__version__ = "1.0.10" +__version__ = "1.0.11" from .exceptions import * from .constants import * diff --git a/opplast/upload.py b/opplast/upload.py index 49f6472..ed8a2ae 100644 --- a/opplast/upload.py +++ b/opplast/upload.py @@ -65,7 +65,7 @@ def upload( thumbnail: str = "", tags: list = [], only_upload: bool = False, - ) -> Tuple[bool, str]: + ) -> Tuple[bool, Optional[str]]: """Uploads a video to YouTube. Returns if the video was uploaded and the video id. """ @@ -172,8 +172,8 @@ def upload( done_button = modal.find_element_by_id(DONE_BUTTON) if done_button.get_attribute("aria-disabled") == "true": - error_message = self.driver.find_element_by_xpath(ERROR_CONTAINER).text - return False, error_message + self.log.debug(self.driver.find_element_by_xpath(ERROR_CONTAINER).text) + return False, None self.click(done_button)