Init total outside try/except.
Merge pull request #11 from mmccurdy07/master

Init total outside try/except.