summarylogtreecommitdiffstats
path: root/0007-Trap-any-kind-of-exception-during-plugin-parsing-eg-.patch
diff options
context:
space:
mode:
Diffstat (limited to '0007-Trap-any-kind-of-exception-during-plugin-parsing-eg-.patch')
-rw-r--r--0007-Trap-any-kind-of-exception-during-plugin-parsing-eg-.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/0007-Trap-any-kind-of-exception-during-plugin-parsing-eg-.patch b/0007-Trap-any-kind-of-exception-during-plugin-parsing-eg-.patch
new file mode 100644
index 000000000000..711a95fd4b88
--- /dev/null
+++ b/0007-Trap-any-kind-of-exception-during-plugin-parsing-eg-.patch
@@ -0,0 +1,26 @@
+From b9ad9137d94eb243557cdabce10e7aa64b5eeda0 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 7/7] 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 4aec544d..f8d4bbe4 100644
+--- a/osc/commandline.py
++++ b/osc/commandline.py
+@@ -9582,7 +9582,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("%s: %s\n" % (os.path.join(plugin_dir, extfile), e), file=sys.stderr)
+ else:
+--
+2.34.1
+