diff options
| author | AAGaming <aa@mail.catvibers.me> | 2022-07-15 12:36:16 -0400 |
|---|---|---|
| committer | AAGaming <aa@mail.catvibers.me> | 2022-07-15 12:36:16 -0400 |
| commit | e07827cdb56ca08e59cbc3106b138140122a5db7 (patch) | |
| tree | 367d05dcd7c434b4abee7b91baf4d53cabe0763c /backend | |
| parent | 103d43e7c967c099852c59ee8b9e19364ccc1ba3 (diff) | |
| download | decky-loader-e07827cdb56ca08e59cbc3106b138140122a5db7.tar.gz decky-loader-e07827cdb56ca08e59cbc3106b138140122a5db7.zip | |
catch rm errors
Diffstat (limited to 'backend')
| -rw-r--r-- | backend/updater.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/backend/updater.py b/backend/updater.py index f4db9190..c0379b6f 100644 --- a/backend/updater.py +++ b/backend/updater.py @@ -91,8 +91,10 @@ class Updater: async with ClientSession() as web: async with web.request("GET", download_url, ssl=helpers.get_ssl_context(), allow_redirects=True) as res: total = int(res.headers.get('content-length', 0)) - - remove(path.join(getcwd(), "PluginLoader")) + try: + remove(path.join(getcwd(), "PluginLoader")) + except: + pass with open(path.join(getcwd(), "PluginLoader"), "wb") as out: progress = 0 raw = 0 |
