Skip to content

Commit 646a99e

Browse files
authored
do not warn (#107)
1 parent aafecdb commit 646a99e

3 files changed

Lines changed: 9 additions & 8 deletions

File tree

CHANGES.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,4 +134,5 @@ v0.3.1:
134134
v0.3.2:
135135
2026-07-08 -- Date parsing warning https://github.com/hapi-server/client-python/pull/104
136136
v0.3.3b0:
137-
2026-07-22 -- Makefile and related updates
137+
2026-07-22 -- Makefile and related updates
138+
2026-08-10 -- Don't warn if binary not available

hapiclient/capabilities.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,14 @@ def capabilities(SERVER):
1818
def get_format(SERVER, format):
1919
"""Return the transport format to use, accounting for server capabilities.
2020
21-
If the requested format is not supported by the server, falls back to 'csv'
22-
with a warning.
21+
If the requested format is not supported by the server, falls back to 'csv'.
2322
"""
2423

25-
from hapiclient.util import error, warning
24+
from hapiclient.util import error
2625

2726
cformats = ['csv', 'binary'] # client formats
2827
if format not in cformats:
29-
msg = 'This client does not handle transport format "%s". Available options: %s'
28+
msg = 'This client does not handle streaming format "%s". Available options: %s'
3029
error(msg % (format, ', '.join(cformats)))
3130

3231
if format != 'csv':
@@ -39,8 +38,9 @@ def get_format(SERVER, format):
3938
return 'csv'
4039

4140
if format not in formats:
42-
msg = 'Requested transport format "%s" not avaiable from %s. Will use "csv". Available options: %s'
43-
warning(msg % (format, SERVER, ', '.join(formats)))
41+
#from hapiclient.util import warning
42+
#msg = 'Requested streaming format "%s" not available from %s. Will use "csv". Available options: %s'
43+
#warning(msg % (format, SERVER, ', '.join(formats)))
4444
format = 'csv'
4545

4646
if 'binary' not in formats:

hapiclient/info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def info(SERVER, DATASET, PARAMETERS, opts):
99

1010
meta = meta_cache_read(SERVER, DATASET, opts)
1111
if meta is not None:
12-
return meta
12+
return meta
1313

1414
cat = catalog(SERVER)
1515
url = SERVER + '/info?' + query_name(cat, 'dataset') + '=' + DATASET

0 commit comments

Comments
 (0)