Edit the following Python code to handle unexpected errors.
def add_numbers(a,b): 
  return a + b
def add_numbers(a,b): 
    try:
        return a + b
    except TypeError as e:
        print(e)
        return None