Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

<br>

## v3.3.1
*Release date: 2026-01-05*

### Changed
- `safe_call` exceptions list

## v3.3.0
*Release date: 2026-01-05*

Expand Down
2 changes: 1 addition & 1 deletion mops/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = '3.3.0'
__version__ = '3.3.1'
__project_name__ = 'mops'
13 changes: 5 additions & 8 deletions mops/utils/internal_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
from functools import lru_cache
from typing import Any, Union, Callable

from mops.mixins.objects.size import Size
from selenium.common.exceptions import StaleElementReferenceException as SeleniumStaleElementReferenceException
from selenium.common.exceptions import WebDriverException as SeleniumWebDriverException

from mops.exceptions import NoSuchElementException, InvalidSelectorException, TimeoutException, NoSuchParentException
from mops.exceptions import DriverWrapperException as MopsDriverWrapperException
from mops.mixins.objects.size import Size

WAIT_METHODS_DELAY = 0.1
WAIT_UNIT = 1
Expand Down Expand Up @@ -38,11 +38,8 @@ def safe_call(func: Callable, *args, **kwargs) -> Union[Any, None]:
:return: None or function return
"""
exceptions = (
NoSuchElementException,
InvalidSelectorException,
TimeoutException,
NoSuchParentException,
SeleniumStaleElementReferenceException,
MopsDriverWrapperException,
SeleniumWebDriverException,
)

try:
Expand Down
Loading