diff --git a/beancount_reds_importers/libreader/xlsreader.py b/beancount_reds_importers/libreader/xlsreader.py index 49e8ac7..e2077a3 100644 --- a/beancount_reds_importers/libreader/xlsreader.py +++ b/beancount_reds_importers/libreader/xlsreader.py @@ -4,6 +4,7 @@ import petl as etl import re from beancount_reds_importers.libreader import csvreader +from os import devnull class Importer(csvreader.Importer): @@ -31,4 +32,5 @@ def initialize_reader(self, file): self.reader_ready = True def read_raw(self, file): - return etl.fromxls(file.name) + # set logfile to ignore WARNING *** file size (92598) not 512 + multiple of sector size (512) + return etl.fromxls(file.name, logfile=open(devnull, 'w'))