mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +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():
|
||||
import warnings
|
||||
warnings.filterwarnings('ignore', module='twisted')
|
||||
warnings.filterwarnings('ignore', category=DeprecationWarning, module='twisted')
|
||||
|
||||
# Setup the argument parser
|
||||
parser = OptionParser(usage="%prog [options] [actions]",
|
||||
|
|
|
@ -45,7 +45,7 @@ DEFAULT_PREFS = {
|
|||
|
||||
if 'dev' not in deluge.common.get_version():
|
||||
import warnings
|
||||
warnings.filterwarnings('ignore', module='twisted')
|
||||
warnings.filterwarnings('ignore', category=DeprecationWarning, module='twisted')
|
||||
|
||||
class _UI(object):
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue