Skip to content

Commit

Permalink
Merge pull request #1566 from ReactionMechanismGenerator/as_e
Browse files Browse the repository at this point in the history
Corrected `raise Error as e` syntax
  • Loading branch information
mliu49 authored Mar 27, 2019
2 parents 83ad0f2 + fabe2b9 commit 0648b7d
Show file tree
Hide file tree
Showing 28 changed files with 69 additions and 448 deletions.
2 changes: 1 addition & 1 deletion arkane/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ def loadInputFile(path):
with open(path, 'r') as f:
try:
exec f in global_context, local_context
except (NameError, TypeError, SyntaxError), e:
except (NameError, TypeError, SyntaxError):
logging.error('The input file {0!r} was invalid:'.format(path))
raise

Expand Down
2 changes: 1 addition & 1 deletion arkane/statmech.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def load(self, pdep=False):
with open(path, 'r') as f:
try:
exec f in global_context, local_context
except (NameError, TypeError, SyntaxError), e:
except (NameError, TypeError, SyntaxError):
logging.error('The species file {0} was invalid:'.format(path))
raise

Expand Down
373 changes: 0 additions & 373 deletions external/cinfony/webel.py

This file was deleted.

Loading

0 comments on commit 0648b7d

Please sign in to comment.