mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-17 23:58:44 +00:00
[#2819] [WebUI] Handle CannotListenError for second instance
This commit is contained in:
parent
bd65abd3b4
commit
7b523af05b
1 changed files with 4 additions and 0 deletions
|
@ -11,6 +11,8 @@ from __future__ import print_function
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from twisted.internet.error import CannotListenError
|
||||||
|
|
||||||
from deluge.common import run_profiled
|
from deluge.common import run_profiled
|
||||||
from deluge.ui.ui import UI
|
from deluge.ui.ui import UI
|
||||||
|
|
||||||
|
@ -64,6 +66,8 @@ class Web(UI):
|
||||||
try:
|
try:
|
||||||
self.server.install_signal_handlers()
|
self.server.install_signal_handlers()
|
||||||
self.server.start()
|
self.server.start()
|
||||||
|
except CannotListenError as ex:
|
||||||
|
log.error("%s \nCheck that deluge-web or webui plugin are not already running.", ex)
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
log.exception(ex)
|
log.exception(ex)
|
||||||
raise
|
raise
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue