Skip to content

Fix incorrect exception handling syntax#2626

Merged
danpovey merged 1 commit intokaldi-asr:masterfrom
akshayc11:Fix-Incorrect-syntax-for-python3x
Aug 17, 2018
Merged

Fix incorrect exception handling syntax#2626
danpovey merged 1 commit intokaldi-asr:masterfrom
akshayc11:Fix-Incorrect-syntax-for-python3x

Conversation

@akshayc11
Copy link
Contributor

Python > 3.4 throws an incorrect syntax error if multiple exceptions being caught are not declared as tuples.

Traceback (most recent call last):
  File "steps/nnet3/chain/train.py", line 22, in <module>
    import libs.nnet3.report.log_parse as nnet3_log_parse
  File "steps/libs/nnet3/report/__init__.py", line 6, in <module>
    from . import log_parse
  File "steps/libs/nnet3/report/log_parse.py", line 535
    except KeyError, IndexError:
                   ^
SyntaxError: invalid syntax

@danpovey danpovey merged commit e31776f into kaldi-asr:master Aug 17, 2018
dpriver pushed a commit to dpriver/kaldi that referenced this pull request Sep 13, 2018
Skaiste pushed a commit to Skaiste/idlak that referenced this pull request Sep 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants