Commits

Massimiliano Torromeo committed 3a21c40

Ignored gtk warnings when no active X display is found

Comments (0)

Files changed (2)

+import warnings
+warnings.filterwarnings("ignore", ".*could not open display.*", Warning)
+warnings.filterwarnings("ignore", ".*g_object_unref.*", Warning)
+
 import logging
 import optparse
 
+import warnings
+warnings.filterwarnings("ignore", ".*could not open display.*", Warning)
+warnings.filterwarnings("ignore", ".*g_object_unref.*", Warning)
+
 import logging
 import optparse
 import os