I would change this function to be:
```
def buildUserFormalName(username):
    gh=Github()
    username = None
    
    try:
        username = gh.users.get(username).name
    except:
        #User wasnt found for some reason
        username = 'this user'
    
    return username
```