Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vmj-qt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
vmj-qt
Commits
acf56a3b
Commit
acf56a3b
authored
Jun 13, 2013
by
Saul Ibarra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Capture ConnectionLost when downloading icon
parent
f7e3befd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
presence.py
blink/presence.py
+2
-1
No files found.
blink/presence.py
View file @
acf56a3b
...
@@ -19,6 +19,7 @@ from dateutil.tz import tzutc
...
@@ -19,6 +19,7 @@ from dateutil.tz import tzutc
from
eventlib.green
import
urllib2
from
eventlib.green
import
urllib2
from
itertools
import
chain
from
itertools
import
chain
from
twisted.internet
import
reactor
from
twisted.internet
import
reactor
from
twisted.internet.error
import
ConnectionLost
from
zope.interface
import
implements
from
zope.interface
import
implements
from
sipsimple
import
addressbook
from
sipsimple
import
addressbook
...
@@ -346,7 +347,7 @@ class PresenceSubscriptionHandler(object):
...
@@ -346,7 +347,7 @@ class PresenceSubscriptionHandler(object):
response
=
urllib2
.
urlopen
(
req
)
response
=
urllib2
.
urlopen
(
req
)
content
=
response
.
read
()
content
=
response
.
read
()
info
=
response
.
info
()
info
=
response
.
info
()
except
(
urllib2
.
HTTPError
,
urllib2
.
URLError
):
except
(
ConnectionLost
,
urllib2
.
HTTPError
,
urllib2
.
URLError
):
return
None
,
None
return
None
,
None
content_type
=
info
.
getheader
(
'content-type'
)
content_type
=
info
.
getheader
(
'content-type'
)
etag
=
info
.
getheader
(
'etag'
)
etag
=
info
.
getheader
(
'etag'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment