Private GIT
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Sick-Beard
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vlbox
Sick-Beard
Commits
c137bea1
Commit
c137bea1
authored
Apr 6, 2011
by
Nic Wolfe
Browse files
Options
Downloads
Patches
Plain Diff
Fix httplib2 from throwing errors for no reason
parent
f406589f
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/httplib2/__init__.py
+3
-1
3 additions, 1 deletion
lib/httplib2/__init__.py
lib/tvdb_api/tvdb_api.py
+42
-41
42 additions, 41 deletions
lib/tvdb_api/tvdb_api.py
with
45 additions
and
42 deletions
lib/httplib2/__init__.py
+
3
−
1
View file @
c137bea1
...
@@ -869,7 +869,9 @@ the same interface as FileCache."""
...
@@ -869,7 +869,9 @@ the same interface as FileCache."""
conn
.
close
()
conn
.
close
()
raise
ServerNotFoundError
(
"
Unable to find the server at %s
"
%
conn
.
host
)
raise
ServerNotFoundError
(
"
Unable to find the server at %s
"
%
conn
.
host
)
except
socket
.
error
,
e
:
except
socket
.
error
,
e
:
if
e
.
errno
==
errno
.
ECONNREFUSED
:
# Connection refused
if
not
hasattr
(
e
,
'
errno
'
):
# I don't know what this is so lets raise it if it happens
raise
elif
e
.
errno
==
errno
.
ECONNREFUSED
:
# Connection refused
raise
raise
# Just because the server closed the connection doesn't apparently mean
# Just because the server closed the connection doesn't apparently mean
# that the server didn't send a response.
# that the server didn't send a response.
...
...
This diff is collapsed.
Click to expand it.
lib/tvdb_api/tvdb_api.py
+
42
−
41
View file @
c137bea1
...
@@ -28,6 +28,7 @@ import warnings
...
@@ -28,6 +28,7 @@ import warnings
import
logging
import
logging
import
datetime
import
datetime
import
time
import
time
import
traceback
try
:
try
:
import
xml.etree.cElementTree
as
ElementTree
import
xml.etree.cElementTree
as
ElementTree
...
...
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
sign in
to comment