Skip to content

Commit 0c4a4f1

Browse files
committed
Remove Unused 'e' from Exception Statements
1 parent 1b52c27 commit 0c4a4f1

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

rmgpy/constraints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def failsSpeciesConstraints(species):
4343

4444
try:
4545
speciesConstraints = getInput('speciesConstraints')
46-
except Exception, e:
46+
except Exception:
4747
logging.debug('Species constraints could not be found.')
4848
speciesConstraints = {}
4949

rmgpy/data/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def load(self, path, local_context=None, global_context=None):
222222
f = open(path, 'r')
223223
try:
224224
exec f in global_context, local_context
225-
except Exception, e:
225+
except Exception:
226226
logging.error('Error while reading database {0!r}.'.format(path))
227227
raise
228228
f.close()

rmgpy/data/kinetics/library.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def load(self, path, local_context=None, global_context=None):
301301
f = open(path, 'r')
302302
try:
303303
exec f in global_context, local_context
304-
except Exception, e:
304+
except Exception:
305305
logging.error('Error while reading database {0!r}.'.format(path))
306306
raise
307307
f.close()

rmgpy/data/thermo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@ def getThermoData(self, species, trainingSet=None):
10451045

10461046
try:
10471047
quantumMechanics = getInput('quantumMechanics')
1048-
except Exception, e:
1048+
except Exception:
10491049
logging.debug('Quantum Mechanics DB could not be found.')
10501050
quantumMechanics = None
10511051

rmgpy/reaction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ def getFreeEnergyOfReaction(self, T):
467467
for reactant in self.reactants:
468468
try:
469469
dGrxn -= reactant.getFreeEnergy(T)
470-
except Exception as e:
470+
except Exception:
471471
logging.error("Problem with reactant {!r} in reaction {!s}".format(reactant, self))
472472
raise
473473
for product in self.products:

0 commit comments

Comments
 (0)