From 65958cc0764d7c6bd94f5eda52249d9c7b2621bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Fri, 4 Oct 2019 12:50:22 +0200 Subject: [PATCH] Fixed possible issue with WA SV parsing (close #23) --- CB/WeakAura.py | 2 +- CB/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CB/WeakAura.py b/CB/WeakAura.py index fa73606..33ac038 100644 --- a/CB/WeakAura.py +++ b/CB/WeakAura.py @@ -37,7 +37,7 @@ def get_accounts(self): def parse_storage(self): self.lua = LuaRuntime() self.urlParser = re.compile('(\w+)/(\d+)') - with open(Path(f'WTF/Account/{self.accountName}/SavedVariables/WeakAuras.lua'), 'r') as file: + with open(Path(f'WTF/Account/{self.accountName}/SavedVariables/WeakAuras.lua'), 'r', encoding='utf-8') as file: data = file.read().replace('WeakAurasSaved = {', '{') wadata = self.lua.eval(data) for wa in wadata['displays']: diff --git a/CB/__init__.py b/CB/__init__.py index 16a1fb8..b0aba3a 100644 --- a/CB/__init__.py +++ b/CB/__init__.py @@ -1,7 +1,7 @@ import string import random -__version__ = '2.7.1' +__version__ = '2.7.2' __license__ = 'GPLv3' __copyright__ = '2019, Paweł Jastrzębski ' __docformat__ = 'restructuredtext en'