File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
3
## [ Unreleased]
4
+ ### Fixed
5
+ - Empty parameter Dict conversion, by @HardNorth
4
6
5
7
## [ 5.5.8]
6
8
### Removed
Original file line number Diff line number Diff line change @@ -295,7 +295,7 @@ def _create_request(**kwargs) -> dict:
295
295
attributes = dict_to_payload (kwargs ['attributes' ])
296
296
request ['attributes' ] = attributes
297
297
parameters = kwargs .get ('parameters' )
298
- if parameters and isinstance (parameters , dict ):
298
+ if parameters is not None and isinstance (parameters , dict ):
299
299
parameters = dict_to_payload (kwargs ['parameters' ])
300
300
request ['parameters' ] = parameters
301
301
return request
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ def dict_to_payload(dictionary: Optional[dict]) -> Optional[List[dict]]:
130
130
:param dictionary: Dictionary containing tags/attributes
131
131
:return list: List of tags/attributes in the required format
132
132
"""
133
- if not dictionary :
133
+ if dictionary is None :
134
134
return dictionary
135
135
my_dictionary = dict (dictionary )
136
136
You can’t perform that action at this time.
0 commit comments