Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Thaodan:tools
osc
0007-Trap-any-kind-of-exception-during-plugin-p...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0007-Trap-any-kind-of-exception-during-plugin-parsing-eg-.patch of Package osc
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Marko Lemmetty <marko.lemmetty@jollamobile.com> Date: Fri, 15 May 2020 15:44:22 +0300 Subject: [PATCH] Trap any kind of exception during plugin parsing (eg IOError for a dangling symlink) --- osc/commandline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/commandline.py b/osc/commandline.py index b8906e79762235c514b6f32d0c8c7bd8c4474b0d..b78993cdb093198440ccbc9e7ed481c6f2d9759b 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -10177,7 +10177,7 @@ Please submit there instead, or use --nodevelproject to force direct submission. if (inspect.isfunction(data) and inspect.getmodule(data) == mod or inspect.ismodule(data)): setattr(self.__class__, name, data) - except (SyntaxError, NameError, ImportError) as e: + except (SyntaxError, NameError, ImportError, IOError) as e: if os.environ.get('OSC_PLUGIN_FAIL_IGNORE'): print(f"{os.path.join(plugin_dir, extfile)}: {e}\n", file=sys.stderr) else:
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor