Skip to content

Commit a04add0

Browse files
authored
Remove check for method name without "dot" separator
There are valid methods like "methods" and "scope" that do not have a "dot" separator within their name. According to the documentation and a "methods" call, there are 5 such methods: ['batch', 'scope', 'methods', 'events', 'profile']
1 parent e81f45a commit a04add0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bitrix24/bitrix24.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def callMethod(self, method: str, params: Dict[str, Any] = {}, **kwargs) -> Dict
150150
-------
151151
Returning the REST method response as an array, an object or a scalar
152152
"""
153-
if not method or len(method.split(".")) < 2:
153+
if not method:
154154
raise BitrixError("Wrong method name", 400)
155155

156156
try:

0 commit comments

Comments
 (0)