mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-08 01:18:39 +00:00
suppress only deprecation warnings
This commit is contained in:
parent
74627f682a
commit
bbb087c04a
2 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue