Skip to content

Commit

Permalink
Заменить ошибку на предупреждение для backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
leshchenko1979 committed Mar 20, 2024
1 parent d9d55f2 commit 231e87c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions fast_bitrix24/user_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,13 @@ class GetAllUserRequest(UserRequestAbstract):
"Use call(raw=True) instead. Read more: "
"https://github.com/leshchenko1979/fast_bitrix24/issues/199",
)
@icontract.require(
lambda self: self.st_method.endswith(".list"),
"get_all() should be used only with methods that end with '.list'. "
"Use get_by_ID() or call() instead.",
)
def check_special_limitations(self):
if not self.st_method.endswith(".list"):
logger.logger.warning(
"get_all() should be used only with methods that end with '.list'. "
"Use get_by_ID() or call() instead."
)

return True

async def run(self):
Expand Down

0 comments on commit 231e87c

Please sign in to comment.