Skip to content

Commit e482aa5

Browse files
authored
cleanup unnecessary error handling (#9)
* removed board not found error handling, should be handled downstream * misc
1 parent 549851c commit e482aa5

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
setup(
1717
name="monday-api-python-sdk", # Required
18-
version="0.9.3", # Required
18+
version="1.0.1", # Required
1919
description="A Python SDK for interacting with Monday's GraphQL API", # Optional
2020
long_description=long_description, # Optional
2121
long_description_content_type="text/markdown", # Optional (see note above)

src/monday_sdk/modules/boards.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,7 @@ def fetch_all_items_by_board_id(
4040
while True:
4141
query = get_board_items_query(board_id, query_params=query_params, cursor=cursor, limit=limit)
4242
response = self.execute(query)
43-
44-
try:
45-
items_page = response.data.boards[0].items_page if cursor is None else response.data.next_items_page
46-
except IndexError:
47-
raise Exception(f"Board {board_id} not found, make sure it's not private, response: {response}")
43+
items_page = response.data.boards[0].items_page if cursor is None else response.data.next_items_page
4844

4945
items.extend(items_page.items)
5046
complexity = response.data.complexity.query

0 commit comments

Comments
 (0)