Skip to content

Commit

Permalink
Merge pull request #259 from censoredplanet/add_domain_categories
Browse files Browse the repository at this point in the history
Adding missing domain categorizations
  • Loading branch information
agiix committed Dec 15, 2023
2 parents 0a6f973 + 02863fb commit e089007
Show file tree
Hide file tree
Showing 2 changed files with 499 additions and 387 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 e089007

Please sign in to comment.