changeset 195:66d1efcb8e8a

filter out warnings that we cannot handle
author Dirk Olmes <dirk@xanthippe.ping.de>
date Fri, 25 Nov 2011 11:15:22 +0100
parents 2c91b5653878
children a9ba3e3a9a9a
files feedworm.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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()