]> xmof Git - DeDRM.git/commitdiff
Small fix to make Obok help work.
authorAldo Bleeker <mail@ableeker.demon.nl>
Wed, 9 Dec 2020 16:34:24 +0000 (17:34 +0100)
committerAldo Bleeker <mail@ableeker.demon.nl>
Wed, 9 Dec 2020 16:34:24 +0000 (17:34 +0100)
Obok_plugin/action.py

index e94204f10124581768ca7e1eac5f304c191c2562..1a4515b419490de7e491210deec8b92cdd44441d 100644 (file)
@@ -197,7 +197,7 @@ class InterfacePluginAction(InterfaceAction):
             # We will write the help file out every time, in case the user upgrades the plugin zip
             # and there is a newer help file contained within it.
             file_path = os.path.join(config_dir, 'plugins', HELPFILE_NAME)
-            file_data = self.load_resources(HELPFILE_NAME)[HELPFILE_NAME]
+            file_data = self.load_resources(HELPFILE_NAME)[HELPFILE_NAME].decode('utf-8')
             with open(file_path,'w') as f:
                 f.write(file_data)
             return file_path