Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Better exception handling in knesset plenum parsing and antiword #778

Open
alonisser opened this issue Dec 15, 2016 · 1 comment
Open

Better exception handling in knesset plenum parsing and antiword #778

alonisser opened this issue Dec 15, 2016 · 1 comment
Labels

Comments

@alonisser
Copy link

  1. Fix strange retry mechanism and log only once in session for specific exception
  2. Investigate this:

antiword failure with file: /oknesset_data/oknesset/Open-Knesset/data/plenum_protocols/2015_5_4_20_ptm_305541.doc

plenum/management/commands/parse_plenum_protocols_subcommands/download.py in _antiword

def _antiword(filename):
try:
return antiword(filename, logger)
except:
logger.exception(u'antiword failure with file: %s' % filename)
Local variables
simple/management/utils.py in antiword
logger = local_logger
cmd = 'antiword -x db ' + filename + ' > ' + filename + '.awdb.xml'
logger.debug(cmd)
output = subprocess.check_output(cmd, stderr=subprocess.STDOUT, shell=True)
logger.debug(output)
with open(filename + '.awdb.xml', 'r') as f:

@OriHoch
Copy link

OriHoch commented Jun 8, 2017

hasadna/knesset-data#128 handles moving the plenum scraping to knesset-data

after it's done, should re-review this bug and see if it reproduces on the new architecture or not

@OriHoch OriHoch added the on hold label Jun 8, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants