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:
-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):