catch rm errors

This commit is contained in:
AAGaming
2022-07-15 12:36:16 -04:00
parent 103d43e7c9
commit e07827cdb5
+4 -2
View File
@@ -91,8 +91,10 @@ class Updater:
async with ClientSession() as web: async with ClientSession() as web:
async with web.request("GET", download_url, ssl=helpers.get_ssl_context(), allow_redirects=True) as res: 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)) total = int(res.headers.get('content-length', 0))
try:
remove(path.join(getcwd(), "PluginLoader")) remove(path.join(getcwd(), "PluginLoader"))
except:
pass
with open(path.join(getcwd(), "PluginLoader"), "wb") as out: with open(path.join(getcwd(), "PluginLoader"), "wb") as out:
progress = 0 progress = 0
raw = 0 raw = 0