suppress only deprecation warnings
This commit is contained in:
parent
74627f682a
commit
bbb087c04a
@ -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')
|
warnings.filterwarnings('ignore', category=DeprecationWarning, module='twisted')
|
||||||
|
|
||||||
# Setup the argument parser
|
# Setup the argument parser
|
||||||
parser = OptionParser(usage="%prog [options] [actions]",
|
parser = OptionParser(usage="%prog [options] [actions]",
|
||||||
|
|||||||
@ -45,7 +45,7 @@ DEFAULT_PREFS = {
|
|||||||
|
|
||||||
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')
|
warnings.filterwarnings('ignore', category=DeprecationWarning, module='twisted')
|
||||||
|
|
||||||
class _UI(object):
|
class _UI(object):
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user