File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
15
15
16
16
### Fixed
17
17
- Bug in ` LayerRefinementSpec ` that refines grids outside the layer region when one in-plane dimension is of size infinity.
18
+ - Querying tasks was sometimes erroring unexpectedly.
18
19
19
20
## [ 2.8.0] - 2025-03-04
20
21
Original file line number Diff line number Diff line change @@ -140,10 +140,12 @@ def wrapper(*args, **kwargs):
140
140
if not resp .text :
141
141
return None
142
142
result = resp .json ()
143
- warning = result .get ("warning" )
144
- if warning :
145
- log = get_logger ()
146
- log .warning (warning )
143
+
144
+ if isinstance (result , dict ):
145
+ warning = result .get ("warning" )
146
+ if warning :
147
+ log = get_logger ()
148
+ log .warning (warning )
147
149
148
150
return result .get ("data" ) if "data" in result else result
149
151
You can’t perform that action at this time.
0 commit comments