created = False should be probably set on top of this function and not in try/except block and here...