def get_numbers(file):
    f = None
    numbers = []
    try:
        with open(file, 'rt') as f:
            for line in f:
                try:
                    numbers.append(int(line))
                except ValueError as e:
                    print('PASS:this line is not pure number:', e)
    except OSError as e:
        print('Opening file error:', e)
    except BaseException as e:
        print('Something is wrong :', e)
    return numbers
def get_numbers(file):
    f = None
    numbers = []
    try:
        with open(file, 'rt') as f:
            for line in f:
                try:
                    numbers.append(int(line))
                except ValueError as e:
                    print('PASS:this line is not pure number:', e)
    except OSError as e:
        print('Opening file error:', e)
    except BaseException as e:
        print('Something is wrong :', e)
    return numbers