mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-02-09 15:00:31 +01:00
gtk: Catch import error.
This commit is contained in:
parent
d168d961a5
commit
5ffcaafe82
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user