Use str to convert file

This commit is contained in:
Jared Esparza 2023-09-28 09:36:25 +02:00
parent c974ab746c
commit 186c75ea91
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ class AccountImportContaplusStart(ModelView):
def on_change_data(self):
inv = False
if self.data:
for iline in read_all(self.data):
for iline in read_all(str(self.data, 'utf8')):
if len(iline.contra.strip()) > 0:
inv = True
break