Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eta
gajim
Commits
225ca870
Commit
225ca870
authored
19 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
we now catch all errors and send them to the gc if it's open
parent
fa183bae
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/common/connection.py
+1
-24
1 addition, 24 deletions
src/common/connection.py
with
1 addition
and
24 deletions
src/common/connection.py
+
1
−
24
View file @
225ca870
...
...
@@ -259,32 +259,9 @@ class Connection:
gajim
.
log
.
debug
(
'
we are now unsubscribed to %s
'
%
who
)
self
.
dispatch
(
'
UNSUBSCRIBED
'
,
prs
.
getFrom
().
getStripped
())
elif
ptype
==
'
error
'
:
# Error stuff differs in xmpppy. So this part may require more adapting
errmsg
=
prs
.
getError
()
errcode
=
prs
.
getErrorCode
()
if
errcode
==
'
400
'
:
#Bad Request: JID Malformed or Private message when not allowed
pass
elif
errcode
==
'
401
'
:
#No Password Provided
pass
elif
errcode
==
'
403
'
:
#forbidden : User is Banned
# Unauthorized Subject Change
# Attempt by Mere Member to Invite Others to a Members-Only Room
# Configuration Access to Non-Owner
# Attempt by Non-Owner to Modify Owner List
# Attempt by Non-Owner to Modify Admin List
# Destroy Request Submitted by Non-Owner
pass
elif
errcode
==
'
404
'
:
#item not found : Room Does Not Exist
pass
elif
errcode
==
'
405
'
:
#Not allowed : Attempt to Kick Moderator, Admin, or Owner
# Attempt to Ban an Admin or Owner
# Attempt to Revoke Voice from an Admin, Owner, or User with a Higher Affiliation
# Attempt to Revoke Moderator Privileges from an Admin or Owner
pass
elif
errcode
==
'
407
'
:
#registration required : User Is Not on Member List
#
pass
elif
errcode
==
'
409
'
:
#conflict : Nick Conflict
if
errcode
==
'
409
'
:
#conflict : Nick Conflict
self
.
dispatch
(
'
ERROR
'
,
errmsg
)
else
:
self
.
dispatch
(
'
NOTIFY
'
,
(
prs
.
getFrom
().
getStripped
(),
'
error
'
,
\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment