Skip to content

Commit cb543fc

Browse files
committed
Fix to accept None as filters of BlockMonitorSpec
1 parent 15e7cfe commit cb543fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iconsdk/monitor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def get_request(self) -> Dict[str, Any]:
113113
params["height"] = self.__height
114114
if self.__logs:
115115
params["logs"] = True
116-
if len(self.__filters) == 1:
116+
if self.__filters is not None and len(self.__filters) == 1:
117117
self.__filters[0].apply_to(params)
118118
else:
119119
params["eventFilters"] = list(map(lambda a: a.as_dict(), self.__filters))

0 commit comments

Comments
 (0)