# HG changeset patch # User Dirk Olmes # Date 1322216122 -3600 # Node ID 66d1efcb8e8a7ddcab445c7d239a53446ab1ee45 # Parent 2c91b56538784b446f4c88fc691f96feb3d16d0e filter out warnings that we cannot handle diff -r 2c91b5653878 -r 66d1efcb8e8a feedworm.py --- a/feedworm.py Fri Oct 07 07:00:44 2011 +0200 +++ b/feedworm.py Fri Nov 25 11:15:22 2011 +0100 @@ -5,6 +5,7 @@ import BackendFactory import logging import sys +import warnings def setupProxy(preferences): if preferences.isProxyConfigured() and preferences.useProxy(): @@ -14,6 +15,9 @@ QNetworkProxy.setApplicationProxy(proxy) if __name__ == '__main__': + # filter out the warnings about duplicate inclusion of argparse + warnings.filterwarnings("ignore", category=UserWarning) + logging.basicConfig(level=logging.DEBUG) backend = BackendFactory.createBackend() preferences = backend.preferences()