diff options
author | Björn Bidar | 2023-11-26 06:53:47 +0200 |
---|---|---|
committer | Björn Bidar | 2023-11-26 06:53:47 +0200 |
commit | 000eb8b3c82b7b8177c6fcae5f2e29850ad3850b (patch) | |
tree | 65540cd783f501a819c48226ef616b04963a19f3 /0008-Trap-any-kind-of-exception-during-plugin-parsing-eg-.patch | |
parent | 8618c14d4f54cc5aeffee74f2a3dc4cf418ff4cb (diff) | |
download | aur-000eb8b3c82b7b8177c6fcae5f2e29850ad3850b.tar.gz |
Update to 1.5.0
- New upstream release
- Rebase sb2 patches
- Removed merged patches
Signed-off-by: Björn Bidar <bjorn.bidar@thaodan.de>
Diffstat (limited to '0008-Trap-any-kind-of-exception-during-plugin-parsing-eg-.patch')
-rw-r--r-- | 0008-Trap-any-kind-of-exception-during-plugin-parsing-eg-.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/0008-Trap-any-kind-of-exception-during-plugin-parsing-eg-.patch b/0008-Trap-any-kind-of-exception-during-plugin-parsing-eg-.patch new file mode 100644 index 000000000000..8725a867bbd1 --- /dev/null +++ b/0008-Trap-any-kind-of-exception-during-plugin-parsing-eg-.patch @@ -0,0 +1,23 @@ +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 2e575eddd4aa044ca53c4677fd8a99a8d92890c8..ed110d359bb6803ab06d21fe88ea6a43006943fa 100644 +--- a/osc/commandline.py ++++ b/osc/commandline.py +@@ -10164,7 +10164,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: |