Commits

Massimiliano Torromeo committed 3a21c40

Ignored gtk warnings when no active X display is found

  • Participants
  • Parent commits a389bc5

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
 

udiskie/umount.py

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