Comment 4 for bug 792288

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):