Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mrDoctorWho/vk4xmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Smith <mrdoctorwho@helldev.net>2019-03-29 06:22:44 +0300
committerJohn Smith <mrdoctorwho@helldev.net>2019-03-29 06:22:44 +0300
commit42bea0f685fc83b9e9b172a4cd301b0a297a6000 (patch)
tree3e4ba68eb9310b7f25aca131ab950d1ca48202d8
parent4aa1afa8a4b81941464a4283d65e7ec7a4fc1380 (diff)
Fix syntax error
One should more write in python rather than java
-rw-r--r--modules/mod_prs_main.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/mod_prs_main.py b/modules/mod_prs_main.py
index 4953c0a..04671bf 100644
--- a/modules/mod_prs_main.py
+++ b/modules/mod_prs_main.py
@@ -30,12 +30,12 @@ def initializeUser(source, resource, prs):
"please register again."
" This incident will be reported.\nCause: %s") % returnExc())
logger.error("Failed to authenicate user! Error: %s (jid: %s)", e.message, source)
- finally:
- if source in USERS_ON_INIT:
- USERS_ON_INIT.remove(source)
else:
user.initialize(send=True, resource=resource) # probably we need to know resource a bit earlier than this time
utils.runThread(executeHandlers, ("prs01", (source, prs)))
+ finally:
+ if source in USERS_ON_INIT:
+ USERS_ON_INIT.remove(source)
def presence_handler(cl, prs):