Skip to content

Commit

Permalink
cleanup unnecessary error handling (#9)
Browse files Browse the repository at this point in the history
* removed board not found error handling, should be handled downstream

* misc
  • Loading branch information
michaelimas authored Dec 30, 2024
1 parent 549851c commit e482aa5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

setup(
name="monday-api-python-sdk", # Required
version="0.9.3", # Required
version="1.0.1", # Required
description="A Python SDK for interacting with Monday's GraphQL API", # Optional
long_description=long_description, # Optional
long_description_content_type="text/markdown", # Optional (see note above)
Expand Down
6 changes: 1 addition & 5 deletions src/monday_sdk/modules/boards.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,7 @@ def fetch_all_items_by_board_id(
while True:
query = get_board_items_query(board_id, query_params=query_params, cursor=cursor, limit=limit)
response = self.execute(query)

try:
items_page = response.data.boards[0].items_page if cursor is None else response.data.next_items_page
except IndexError:
raise Exception(f"Board {board_id} not found, make sure it's not private, response: {response}")
items_page = response.data.boards[0].items_page if cursor is None else response.data.next_items_page

items.extend(items_page.items)
complexity = response.data.complexity.query
Expand Down

0 comments on commit e482aa5

Please sign in to comment.