[meld] Fix exceptions for VC v2 API
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] Fix exceptions for VC v2 API
- Date: Fri, 3 May 2013 22:56:19 +0000 (UTC)
commit 8a049ee7d46eaf25cd585153251794bd22c9dcf4
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sat May 4 08:51:45 2013 +1000
Fix exceptions for VC v2 API
meld/vcview.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/meld/vcview.py b/meld/vcview.py
index 39192ac..c19ccc2 100644
--- a/meld/vcview.py
+++ b/meld/vcview.py
@@ -703,7 +703,7 @@ class VcView(melddoc.MeldDoc, gnomeglade.Component):
def on_button_update_clicked(self, obj):
try:
self.vc.update(self._command, self._get_selected_files())
- except AttributeError:
+ except NotImplementedError:
self._command_on_selected(self.vc.update_command())
def on_button_push_clicked(self, obj):
@@ -736,7 +736,7 @@ class VcView(melddoc.MeldDoc, gnomeglade.Component):
def on_button_revert_clicked(self, obj):
try:
self.vc.revert(self._command, self._get_selected_files())
- except AttributeError:
+ except NotImplementedError:
self._command_on_selected(self.vc.revert_command())
def on_button_delete_clicked(self, obj):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]