1. Massimiliano Torromeo
  2. udiskie

Commits

Massimiliano Torromeo  committed 3a21c40

Ignored gtk warnings when no active X display is found

  • Participants
  • Parent commits a389bc5
  • Branches default

Comments (0)

Files changed (2)

File udiskie/mount.py

View file
  • Ignore whitespace
+import warnings
+warnings.filterwarnings("ignore", ".*could not open display.*", Warning)
+warnings.filterwarnings("ignore", ".*g_object_unref.*", Warning)
+
 import logging
 import optparse
 

File udiskie/umount.py

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