Fixed profile data when an error is raised
Added missing function
Merge pull request #58 from 28msec/fix-profile-data-when-an-error-is-raised

Fixed profile data when an error is raised