use only "twisted" in the module arg as that suppresses all warnings from twisted
This commit is contained in:
parent
958c6334b0
commit
74627f682a
|
@ -128,7 +128,7 @@ def start_daemon():
|
||||||
|
|
||||||
if 'dev' not in deluge.common.get_version():
|
if 'dev' not in deluge.common.get_version():
|
||||||
import warnings
|
import warnings
|
||||||
warnings.filterwarnings('ignore', module='twisted.internet._sslverify')
|
warnings.filterwarnings('ignore', module='twisted')
|
||||||
|
|
||||||
# Setup the argument parser
|
# Setup the argument parser
|
||||||
parser = OptionParser(usage="%prog [options] [actions]",
|
parser = OptionParser(usage="%prog [options] [actions]",
|
||||||
|
|
|
@ -38,15 +38,14 @@ import deluge.common
|
||||||
import deluge.configmanager
|
import deluge.configmanager
|
||||||
import deluge.log
|
import deluge.log
|
||||||
import os
|
import os
|
||||||
import warnings
|
|
||||||
|
|
||||||
DEFAULT_PREFS = {
|
DEFAULT_PREFS = {
|
||||||
"default_ui": "gtk"
|
"default_ui": "gtk"
|
||||||
}
|
}
|
||||||
|
|
||||||
if 'dev' not in deluge.common.get_version():
|
if 'dev' not in deluge.common.get_version():
|
||||||
warnings.filterwarnings('ignore', module='twisted.persisted.sob')
|
import warnings
|
||||||
warnings.filterwarnings('ignore', module='twisted.python.filepath')
|
warnings.filterwarnings('ignore', module='twisted')
|
||||||
|
|
||||||
class _UI(object):
|
class _UI(object):
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue