Commit 3a8dae9b authored by Kai Willadsen's avatar Kai Willadsen

meldbuffer: Handle having a None target

parent 109d19eb
......@@ -196,7 +196,7 @@ class MeldBufferData(GObject.GObject):
try:
info = self.gfiletarget.query_info(
Gio.FILE_ATTRIBUTE_ACCESS_CAN_WRITE, 0, None)
except GLib.GError:
except (AttributeError, GLib.GError):
return False
return info.get_attribute_boolean(Gio.FILE_ATTRIBUTE_ACCESS_CAN_WRITE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment