Got rid with strict username existance check.

Now users w/o username should handled OK.
This commit is contained in:
AB committed 2018-09-14 00:00:31 +03:00
1 parent d71da08eff
commit 2b0b563a16
2 files changed
+5 -1

No files matched your search

+1
View File
@@ -8,3 +8,4 @@ code.png
*.swp
*.swo
*.allah
.vscode/settings.json
+4 -1
View File
@@ -170,7 +170,10 @@ class MessageWorker:
return False
try:
text = msg['message']['text']
username = msg['message']['from']['username']
try:
username = msg['message']['from']['username']
except:
username = "_null"
try:
last_name = msg['message']['from']['last_name']
except: