• Louis Simoneau's avatar
    Guard against log entry pages not containing 'entries' key (#170) · 8b8177b4
    Louis Simoneau authored
    In practice, when requesting logs going back more than a few days, the
    StackDriver API sometimes responds with an empty page with a next page
    cursor. After polling the next page a few times you eventually start
    getting entries. The empty pages have no `entries` key, which previously
    resulted in a KeyError.
    
    This change allows the extractor to continue polling instead of blowing up.
    8b8177b4
bigquery_usage_extractor.py 7.35 KB