Skip to content

Commit

Permalink
v1.0.11 (#24)
Browse files Browse the repository at this point in the history
* revert error_message change

* revert error_message change
  • Loading branch information
offish authored Oct 18, 2021
1 parent e26e30a commit 561dc69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion opplast/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__name__ = "opplast"
__version__ = "1.0.10"
__version__ = "1.0.11"

from .exceptions import *
from .constants import *
Expand Down
6 changes: 3 additions & 3 deletions opplast/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 561dc69

Please sign in to comment.