Edit the given Python function to include an exception handling code block.
def convert_to_integer(x):
    return int(x)
def convert_to_integer(x):
    try:
        return int(x)
    except Exception:
        print('Unable to convert to integer.')
        return x