Skip to content

Commit

Permalink
Fixed possible issue with WA SV parsing (close #23)
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Oct 4, 2019
1 parent 1273e51 commit 65958cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CB/WeakAura.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']:
Expand Down
2 changes: 1 addition & 1 deletion CB/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import string
import random

__version__ = '2.7.1'
__version__ = '2.7.2'
__license__ = 'GPLv3'
__copyright__ = '2019, Paweł Jastrzębski <[email protected]>'
__docformat__ = 'restructuredtext en'
Expand Down

0 comments on commit 65958cc

Please sign in to comment.