Skip to content

Commit 77ab1da

Browse files
Small updates to schema and http error handling...
1 parent 43c8dde commit 77ab1da

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

python/idsse_common/idsse/common/http_utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ def ls(self, path: str, prepend_path: bool = True) -> Sequence[str]:
3232
Returns:
3333
Sequence[str]: The results from executing a request get on passed path
3434
"""
35+
files = []
3536
try:
36-
files = []
3737
response = requests.get(path, timeout=5)
3838
response.raise_for_status() # Raise an exception for bad status codes
3939

@@ -46,7 +46,8 @@ def ls(self, path: str, prepend_path: bool = True) -> Sequence[str]:
4646
files.append(filename)
4747

4848
except requests.exceptions.RequestException as exp:
49-
logger.warning('Unable to query supplied Path : %s', str(exp))
49+
if "403" not in str(exp):
50+
logger.warning('Unable to query supplied Path : %s', str(exp))
5051
return []
5152
files = sorted(files, reverse=True)
5253
if prepend_path:

python/idsse_common/idsse/common/schema/field.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"AppTemp",
88
"CEILING",
99
"Ceiling",
10-
"CREF",
10+
"CREF",
1111
"DEWPOINT",
1212
"DewPoint",
1313
"ECHOTOP",
@@ -19,7 +19,7 @@
1919
"Ice:6HR",
2020
"ICE:24HR",
2121
"Ice:24HR",
22-
"LIGHTNING",
22+
"LIGHTNING",
2323
"MAXREF",
2424
"MaxRef",
2525
"PRECIP1HR",
@@ -53,6 +53,7 @@
5353
"VIL",
5454
"VISIBILITY",
5555
"Visibility",
56+
"WAVEHEIGHT",
5657
"WINDDIR",
5758
"WindDir",
5859
"WINDGUST",

0 commit comments

Comments
 (0)