diff --git a/pagermaid/modules/plugin.py b/pagermaid/modules/plugin.py index 4332e53..fe589a8 100644 --- a/pagermaid/modules/plugin.py +++ b/pagermaid/modules/plugin.py @@ -32,8 +32,8 @@ def remove_plugin(name): async def download(name): html = await get(f'{git_source}{name}.py') - with open(f'plugins/{name}.py', mode='w') as f: - f.write(html.text) + with open(f'plugins/{name}.py', mode='wb') as f: + f.write(html.text.encode('utf-8')) return f'plugins/{name}.py'