From 5264170c7a7b0f4cbd60266c999886f3c299b1cf Mon Sep 17 00:00:00 2001 From: Norberto Arrieta Date: Fri, 1 Feb 2019 17:38:38 -0800 Subject: [PATCH] Catch base Exception (#1452) --- azurelinuxagent/ga/exthandlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azurelinuxagent/ga/exthandlers.py b/azurelinuxagent/ga/exthandlers.py index 0c85e6240..b9bcc9a42 100644 --- a/azurelinuxagent/ga/exthandlers.py +++ b/azurelinuxagent/ga/exthandlers.py @@ -779,7 +779,7 @@ def download(self): self.logger.verbose("Unzip extension package") try: zipfile.ZipFile(self.pkg_file).extractall(self.get_base_dir()) - except IOError as e: + except Exception as e: fileutil.clean_ioerror(e, paths=[self.get_base_dir(), self.pkg_file]) raise ExtensionError(u"Failed to unzip extension package", e, code=1001)