gtk: Catch import error.

This commit is contained in:
Dylan Araps 2017-07-24 22:34:05 +10:00
parent d168d961a5
commit 5ffcaafe82

View File

@ -7,7 +7,11 @@ which isn't available in Python 3.
Original source: https://crunchbang.org/forums/viewtopic.php?id=39646
"""
import gtk
try:
import gtk
except ImportError:
print("error: GTK reload requires PyGTK.")
exit(1)
def gtk_reload():