Skip to content

Commit

Permalink
run /bin/gpo without install Module PyGObject
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusHackspacher authored Oct 9, 2024
1 parent 657001f commit 23518b0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/gpodder/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,11 @@ def make_directory(path):
Returns True if the directory exists after the function
call, False otherwise.
"""
from gi.repository import Gio, GLib
try:
from gi.repository import Gio, GLib
except ImportError:
print('Error: Module "PyGObject" not found.')
return False

if not isinstance(path, Gio.File):
path = new_gio_file(path)
Expand Down

0 comments on commit 23518b0

Please sign in to comment.