import logging
from typing import List
import traceback


def get_authors_from_file(logger: logging.Logger, fname: str) -> List[str]:
    """Return list of authors of interest from given file."""
    if not fname:
        return []

    try:
        with open(fname, 'rb') as fhandle:
            authors = [
                line.decode('utf-8').strip()
                for line in fhandle.readlines()
                if line.decode('utf-8').strip() != ''
            ]
    except Exception:
        logger.error(traceback.format_exc())
        authors = []

    return authors