Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Ma-Mush authored Jan 19, 2021
1 parent 05a0f6a commit b0e427a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions LiteVkApi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,9 @@
# =============================================================================
try:
import vk_api
except ImportError as err:
raise ImportError(
"Ошибка авторизации (login):\n"
"=====\nНе установлена библиотека "
"vk_api - pip3 install vk_api\n====="
) from err
except: raise ImportError(
"Ошибка авторизации (login):\n =====\nНе установлена библиотека vk_api - pip3 install vk_api\n====="
)

from vk_api.utils import get_random_id
from vk_api.longpoll import VkLongPoll, VkEventType
Expand Down Expand Up @@ -394,7 +391,7 @@ def r(text, userids):
for i in userids:
try:
if i not in safe:
Vk.msg(text, i, chats)
Vk.msg(self, text, i, chats)
except:
1
except:
Expand Down

0 comments on commit b0e427a

Please sign in to comment.