Skip to content

Commit

Permalink
Adapting Github Workflow to fix failing mypy run
Browse files Browse the repository at this point in the history
  • Loading branch information
agiix committed Dec 6, 2023
1 parent 949d9e6 commit 02863fb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions mirror/routeviews/bulk_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
import argparse
import datetime
import urllib.request

import requests
from urllib.error import HTTPError

from google.cloud import storage # type: ignore

Expand Down Expand Up @@ -74,8 +73,8 @@ def download_days_routeview(bucket: storage.bucket.Bucket,

blob = bucket.blob(cloud_filepath)
blob.upload_from_string(content)
except requests.exceptions.HTTPError as ex:
if ex.response.status_code != 404:
except HTTPError as ex:
if ex.code != 404:
raise ex


Expand Down

0 comments on commit 02863fb

Please sign in to comment.