Private GIT
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Seedbox-Statistics-For-InfluxDB
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
Seedbox-Statistics-For-InfluxDB
Commits
871097af
Commit
871097af
authored
Jan 22, 2017
by
Matt
Browse files
Options
Downloads
Patches
Plain Diff
Fixed crash as a result of no torrents in client
parent
6bbd352e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
clients/deluge.py
+4
-1
4 additions, 1 deletion
clients/deluge.py
with
4 additions
and
1 deletion
clients/deluge.py
+
4
−
1
View file @
871097af
...
...
@@ -115,7 +115,7 @@ class DelugeClient(TorrentClient):
try
:
res
=
urlopen
(
req
)
except
URLError
as
e
:
msg
=
'
Failed To Authenticate with torrent client. HTTP Error
'
msg
=
'
Failed To Authenticate with torrent client. HTTP Error
. Aborting
'
self
.
send_log
(
msg
,
'
critical
'
)
print
(
e
)
sys
.
exit
(
1
)
...
...
@@ -175,6 +175,9 @@ class DelugeClient(TorrentClient):
return
output
=
self
.
_process_response
(
res
)
if
not
output
:
return
if
output
[
'
error
'
]:
msg
=
'
Problem getting torrent list from {}. Error: {}
'
.
format
(
self
.
torrent_client
,
output
[
'
error
'
])
self
.
send_log
(
msg
,
'
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