682ed3c Remove unused import, move back to try/except from hasattr

Authored and Committed by vivekanand1101 7 years ago
    Remove unused import, move back to try/except from hasattr
    
    Using hasattr is returning
    github.GithubException.Unknownobjectexception.
    With this commit, we will catch that exception and return a reasonable
    msg.