From 11c9c3e15daf502aca3482ddde142a0ab18dfb37 Mon Sep 17 00:00:00 2001 From: Arnav Jindal Date: Thu, 21 Apr 2022 04:23:03 +0530 Subject: [PATCH] move to BaseException to handle urllib HTTPErrors --- plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.py b/plugin.py index 3391319..b2d2ea0 100644 --- a/plugin.py +++ b/plugin.py @@ -246,7 +246,7 @@ def install_or_update(cls) -> None: os.chmod(serverfile, 0o744) with open(os.path.join(cls.basedir(), "VERSION"), "w") as fp: fp.write(version) - except Exception: + except BaseException: shutil.rmtree(cls.basedir(), ignore_errors=True) raise