Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
maaikelimper committed Nov 30, 2023
1 parent 3872141 commit e85a17b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wis2box_api/plugins/process/bufr2geojson.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@
import requests
import base64

from wis2box_api.wis2box.env import STORAGE_PUBLIC_URL
from pygeoapi.process.base import BaseProcessor
from bufr2geojson import transform as as_geojson

from wis2box_api.wis2box.env import STORAGE_PUBLIC_URL

LOGGER = logging.getLogger(__name__)

PROCESS_METADATA = {
Expand Down Expand Up @@ -113,7 +114,7 @@ def execute(self, data):
data_url = data_url.replace(STORAGE_PUBLIC_URL, 'http://minio:9000/wis2box-public') # noqa
LOGGER.debug(f'Executing bufr2geojson on: {data_url}')
# read the data from the URL
result = requests.get(data_url) # noqa
result = requests.get(data_url)
# raise an exception if the status code is not 200
result.raise_for_status()
# get the bytes from the response
Expand Down

0 comments on commit e85a17b

Please sign in to comment.