Skip to content

Commit

Permalink
Set geometry to None when there is an error
Browse files Browse the repository at this point in the history
  • Loading branch information
RoryPTB committed Sep 15, 2023
1 parent 2607932 commit c5a6b1f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions synop2bufr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
from pymetdecoder import synop
from csv2bufr import BUFRMessage

__version__ = '0.6.dev1'
__version__ = '0.6.0'

LOGGER = logging.getLogger(__name__)

Expand Down Expand Up @@ -1332,10 +1332,7 @@ def transform(data: str, metadata: str, year: int,
yield {
"_meta": {
"id": None,
"geometry": {
"type": "Point",
"coordinates": None
},
"geometry": None,
"properties": {
"md5": None,
"wigos_station_identifier": None,
Expand Down

0 comments on commit c5a6b1f

Please sign in to comment.