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():
|
||||
import warnings
|
||||
warnings.filterwarnings('ignore', module='twisted.internet._sslverify')
|
||||
warnings.filterwarnings('ignore', module='twisted')
|
||||
|
||||
# Setup the argument parser
|
||||
parser = OptionParser(usage="%prog [options] [actions]",
|
||||
|
|
|
@ -38,15 +38,14 @@ import deluge.common
|
|||
import deluge.configmanager
|
||||
import deluge.log
|
||||
import os
|
||||
import warnings
|
||||
|
||||
DEFAULT_PREFS = {
|
||||
"default_ui": "gtk"
|
||||
}
|
||||
|
||||
if 'dev' not in deluge.common.get_version():
|
||||
warnings.filterwarnings('ignore', module='twisted.persisted.sob')
|
||||
warnings.filterwarnings('ignore', module='twisted.python.filepath')
|
||||
import warnings
|
||||
warnings.filterwarnings('ignore', module='twisted')
|
||||
|
||||
class _UI(object):
|
||||
|
||||
|
|
Loading…
Reference in New Issue