Private GIT
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SickRage-1
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
SickRage-1
Commits
11555803
Commit
11555803
authored
9 years ago
by
miigotu
Browse files
Options
Downloads
Plain Diff
Merge pull request #2105 from fernandog/trakt_return
Fix trakt return
parents
4d026d72
9c80e1f4
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/trakt/trakt.py
+1
-3
1 addition, 3 deletions
lib/trakt/trakt.py
with
1 addition
and
3 deletions
lib/trakt/trakt.py
+
1
−
3
View file @
11555803
...
@@ -110,10 +110,8 @@ class TraktAPI():
...
@@ -110,10 +110,8 @@ class TraktAPI():
elif
code
in
(
500
,
501
,
503
,
504
,
520
,
521
,
522
):
elif
code
in
(
500
,
501
,
503
,
504
,
520
,
521
,
522
):
#http://docs.trakt.apiary.io/#introduction/status-codes
#http://docs.trakt.apiary.io/#introduction/status-codes
logger
.
log
(
u
'
Trakt may have some issues and it
\'
s unavailable. Try again later please
'
,
logger
.
WARNING
)
logger
.
log
(
u
'
Trakt may have some issues and it
\'
s unavailable. Try again later please
'
,
logger
.
WARNING
)
return
{}
elif
code
is
404
:
elif
code
is
404
:
logger
.
log
(
u
'
Trakt error (404) the resource does not exist: %s
'
%
url
+
path
,
logger
.
WARNING
)
logger
.
log
(
u
'
Trakt error (404) the resource does not exist: %s
'
%
url
+
path
,
logger
.
WARNING
)
return
{}
else
:
else
:
logger
.
log
(
u
'
Could not connect to Trakt. Code error: {0}
'
.
format
(
code
),
logger
.
ERROR
)
logger
.
log
(
u
'
Could not connect to Trakt. Code error: {0}
'
.
format
(
code
),
logger
.
ERROR
)
return
{}
return
{}
...
...
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