Improve handling for exceptions, output more information so we can find and fix problems.

This commit is contained in:
Ebag333
2017-02-12 13:09:26 -08:00
parent e7a5cb4b1d
commit 35e330f574
12 changed files with 50 additions and 33 deletions

View File

@@ -68,9 +68,9 @@ class FitDpsGraph(Graph):
bonus = values[i]
val *= 1 + (bonus - 1) * exp(- i ** 2 / 7.1289)
data[attr] = val
except:
pyfalog.warning("Caught exception in calcDPS.")
pass
except Exception as e:
pyfalog.critical("Caught exception in calcDPS.")
pyfalog.critical(e)
for mod in fit.modules:
dps, _ = mod.damageStats(fit.targetResists)