From e4e153c55e13493e18b67758e043a2bbeaac43dd Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Fri, 11 Sep 2020 15:44:53 -0300 Subject: [PATCH] [snap] fix -> returning success when the user declines the Snap channel change --- bauh/gems/snap/controller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bauh/gems/snap/controller.py b/bauh/gems/snap/controller.py index f0b9c471..397f709c 100644 --- a/bauh/gems/snap/controller.py +++ b/bauh/gems/snap/controller.py @@ -274,13 +274,13 @@ class SnapManager(SoftwareManager): if not channel: watcher.show_message(title=self.i18n['snap.action.channel.label'], body=self.i18n['snap.action.channel.error.no_channel']) - return True + return False return ProcessHandler(watcher).handle_simple(snap.refresh_and_stream(app_name=pkg.name, root_password=root_password, channel=channel))[0] except: - return True + return False def _start_category_task(self, task_man: TaskManager): if task_man: