mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-07 17:08:42 +00:00
Fix #2338 : Spelling mistake with occurred
This commit is contained in:
parent
27bfa5a649
commit
3cc43f63a0
4 changed files with 17 additions and 17 deletions
|
@ -277,7 +277,7 @@ class Core(component.Component):
|
||||||
result.addCallbacks(on_download_success, on_download_fail)
|
result.addCallbacks(on_download_success, on_download_fail)
|
||||||
else:
|
else:
|
||||||
# Log the error and pass the failure onto the client
|
# Log the error and pass the failure onto the client
|
||||||
log.error("Error occured downloading torrent from %s", url)
|
log.error("Error occurred downloading torrent from %s", url)
|
||||||
log.error("Reason: %s", failure.getErrorMessage())
|
log.error("Reason: %s", failure.getErrorMessage())
|
||||||
result = failure
|
result = failure
|
||||||
return result
|
return result
|
||||||
|
|
|
@ -276,7 +276,7 @@ class Core(CorePluginBase):
|
||||||
"""
|
"""
|
||||||
Recovers from download error
|
Recovers from download error
|
||||||
|
|
||||||
:param f: failure that occured
|
:param f: failure that occurred
|
||||||
:type f: Failure
|
:type f: Failure
|
||||||
:returns: a Deferred if recovery was possible
|
:returns: a Deferred if recovery was possible
|
||||||
else the original failure
|
else the original failure
|
||||||
|
@ -377,7 +377,7 @@ class Core(CorePluginBase):
|
||||||
"""
|
"""
|
||||||
Recovers from import error
|
Recovers from import error
|
||||||
|
|
||||||
:param f: failure that occured
|
:param f: failure that occurred
|
||||||
:type f: Failure
|
:type f: Failure
|
||||||
:returns: a Deferred if recovery was possible
|
:returns: a Deferred if recovery was possible
|
||||||
else the original failure
|
else the original failure
|
||||||
|
|
|
@ -244,7 +244,7 @@ class TrackerIcons(Component):
|
||||||
"""
|
"""
|
||||||
Recovers from download error
|
Recovers from download error
|
||||||
|
|
||||||
:param f: the failure that occured
|
:param f: the failure that occurred
|
||||||
:type f: Failure
|
:type f: Failure
|
||||||
:param host: the name of the host whose page failed to download
|
:param host: the name of the host whose page failed to download
|
||||||
:type host: string
|
:type host: string
|
||||||
|
@ -311,7 +311,7 @@ class TrackerIcons(Component):
|
||||||
"""
|
"""
|
||||||
Recovers from a parse error
|
Recovers from a parse error
|
||||||
|
|
||||||
:param f: the failure that occured
|
:param f: the failure that occurred
|
||||||
:type f: Failure
|
:type f: Failure
|
||||||
:returns: a Deferred if recovery was possible
|
:returns: a Deferred if recovery was possible
|
||||||
else the original failure
|
else the original failure
|
||||||
|
@ -383,7 +383,7 @@ class TrackerIcons(Component):
|
||||||
"""
|
"""
|
||||||
Recovers from a download error
|
Recovers from a download error
|
||||||
|
|
||||||
:param f: the failure that occured
|
:param f: the failure that occurred
|
||||||
:type f: Failure
|
:type f: Failure
|
||||||
:param host: the host the icon failed to download for
|
:param host: the host the icon failed to download for
|
||||||
:type host: string
|
:type host: string
|
||||||
|
|
|
@ -242,7 +242,7 @@ class JSON(resource.Resource, component.Component):
|
||||||
|
|
||||||
def _on_rpc_request_failed(self, reason, response, request):
|
def _on_rpc_request_failed(self, reason, response, request):
|
||||||
"""
|
"""
|
||||||
Handles any failures that occured while making an rpc call.
|
Handles any failures that occurred while making an rpc call.
|
||||||
"""
|
"""
|
||||||
request.setResponseCode(http.INTERNAL_SERVER_ERROR)
|
request.setResponseCode(http.INTERNAL_SERVER_ERROR)
|
||||||
return ""
|
return ""
|
||||||
|
@ -658,7 +658,7 @@ class WebApi(JSONComponent):
|
||||||
allow_compression=False)
|
allow_compression=False)
|
||||||
result.addCallbacks(on_download_success, on_download_fail)
|
result.addCallbacks(on_download_success, on_download_fail)
|
||||||
else:
|
else:
|
||||||
log.error("Error occured downloading torrent from %s", url)
|
log.error("Error occurred downloading torrent from %s", url)
|
||||||
log.error("Reason: %s", result.getErrorMessage())
|
log.error("Reason: %s", result.getErrorMessage())
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
@ -871,7 +871,7 @@ class WebApi(JSONComponent):
|
||||||
d.addCallback(on_connect, c)
|
d.addCallback(on_connect, c)
|
||||||
d.addErrback(on_connect_failed)
|
d.addErrback(on_connect_failed)
|
||||||
except:
|
except:
|
||||||
main_deferred.callback((False, "An error occured"))
|
main_deferred.callback((False, "An error occurred"))
|
||||||
return main_deferred
|
return main_deferred
|
||||||
|
|
||||||
@export
|
@export
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue