Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/GetIABooksActivity.py
diff options
context:
space:
mode:
authorSayamindu Dasgupta <sayamindu@gmail.com>2009-12-09 17:15:23 (GMT)
committer Sayamindu Dasgupta <sayamindu@gmail.com>2009-12-09 17:15:23 (GMT)
commit589e02cfd5ef114b4874ab459fd0ed13e71065b9 (patch)
tree0cefc2374dfef20e073da79e91731ac5cab9ec73 /GetIABooksActivity.py
parentc2333f2ae8c7063a39690e1ea780521503e7b532 (diff)
Download cancellation now happens inside a try: block
Diffstat (limited to 'GetIABooksActivity.py')
-rwxr-xr-xGetIABooksActivity.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/GetIABooksActivity.py b/GetIABooksActivity.py
index a3979da..155c0bc 100755
--- a/GetIABooksActivity.py
+++ b/GetIABooksActivity.py
@@ -375,7 +375,10 @@ class GetIABooksActivity(activity.Activity):
def __cancel_btn_clicked_cb(self, btn):
if self._getter is not None:
- self._getter.cancel()
+ try:
+ self._getter.cancel()
+ except:
+ _logger.debug('Got an exception while trying to cancel download')
self.progressbox.hide()
self.listview.props.sensitive = True
_logger.debug('Download was canceled by the user.')