[meld: 56/63] meldbuffer: Handle having a None target
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld: 56/63] meldbuffer: Handle having a None target
- Date: Wed, 16 Dec 2015 21:23:41 +0000 (UTC)
commit 3a8dae9bfdf5ba91d076697bea3e5436da5b33b6
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sun Oct 18 07:55:31 2015 +1000
meldbuffer: Handle having a None target
meld/meldbuffer.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/meld/meldbuffer.py b/meld/meldbuffer.py
index a13bc10..600c868 100644
--- a/meld/meldbuffer.py
+++ b/meld/meldbuffer.py
@@ -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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]