def humidity_or_none(h):
    """Return the supplied humidity percentage as a string in the
    format "%2d", or a hyphen, if unavailable (None).
    """

    if h is None:
        return " -"

    return "%2d" % h