A more correct fix is:
Add this line after line 23:
import glib
Change line 676 from:
except gio.Error:
to:
except (gio.Error, glib.GError):
A more correct fix is:
Add this line after line 23:
import glib
Change line 676 from:
except gio.Error:
to:
except (gio.Error, glib.GError):