Needed return instead of pass in except block.
Corrected tab/ space issue.
Reorganized output.