better-notion 2.1.5__py3-none-any.whl → 2.1.6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of better-notion might be problematic. Click here for more details.

@@ -142,15 +142,29 @@ class WorkspaceInitializer:
142
142
  except Exception as e:
143
143
  # Clean up databases created so far
144
144
  import traceback
145
- logger.error(f"Failed to create {display_name} database: {str(e)}")
146
- logger.error(f"Full traceback:\n{traceback.format_exc()}")
145
+ import sys
146
+
147
+ # Log to stderr for visibility
148
+ print(f"\n{'='*60}", file=sys.stderr)
149
+ print(f"❌ FAILED TO CREATE: {display_name} database", file=sys.stderr)
150
+ print(f"{'='*60}", file=sys.stderr)
151
+ print(f"Error: {str(e)}", file=sys.stderr)
152
+ print(f"\nFull traceback:", file=sys.stderr)
153
+ traceback.print_exc(file=sys.stderr)
147
154
 
148
155
  # Try to get more error details if available
149
156
  error_details = str(e)
150
157
  if hasattr(e, 'response') and hasattr(e.response, 'text'):
151
- logger.error(f"Notion API response: {e.response.text}")
158
+ print(f"\nNotion API response:", file=sys.stderr)
159
+ print(f"{e.response.text}", file=sys.stderr)
152
160
  error_details += f"\nNotion API response: {e.response.text}"
153
161
 
162
+ print(f"\nDatabases created before failure: {list(self._database_ids.keys())}", file=sys.stderr)
163
+ print(f"{'='*60}\n", file=sys.stderr)
164
+
165
+ logger.error(f"Failed to create {display_name} database: {str(e)}")
166
+ logger.error(f"Full traceback:\n{traceback.format_exc()}")
167
+
154
168
  logger.warning(f"Cleaning up {len(self._database_ids)} databases that were created...")
155
169
  await self._delete_existing_databases(parent, self._database_ids)
156
170
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: better-notion
3
- Version: 2.1.5
3
+ Version: 2.1.6
4
4
  Summary: A high-level Python SDK for the Notion API with developer experience in mind.
5
5
  Project-URL: Homepage, https://github.com/nesalia-inc/better-notion
6
6
  Project-URL: Documentation, https://github.com/nesalia-inc/better-notion#readme
@@ -132,9 +132,9 @@ better_notion/utils/agents/project_context.py,sha256=aJlzy5H2rL4sAfW2jHL_3K2VkBJ
132
132
  better_notion/utils/agents/rbac.py,sha256=8ZA8Y7wbOiVZDbpjpH7iC35SZrZ0jl4fcJ3xWCm3SsE,11820
133
133
  better_notion/utils/agents/schemas.py,sha256=2QF71tL-lt_n7u-oizVDMj4nd29fl8uUbhMKTWxNzr4,22721
134
134
  better_notion/utils/agents/state_machine.py,sha256=xUBEeDTbU1Xq-rsRo2sbr6AUYpYrV9DTHOtZT2cWES8,6699
135
- better_notion/utils/agents/workspace.py,sha256=zmJ2BRklEBC9fzB1AudA33h-yvFYvm1iSR2huc60oE4,25007
136
- better_notion-2.1.5.dist-info/METADATA,sha256=bF0A80PsoJc2QHKhiYMB14I89zMtUbrCz_LkzadHVGs,11096
137
- better_notion-2.1.5.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
138
- better_notion-2.1.5.dist-info/entry_points.txt,sha256=D0bUcP7Z00Zyjxw7r2p29T95UrwioDO0aGDoHe9I6fo,55
139
- better_notion-2.1.5.dist-info/licenses/LICENSE,sha256=BAdN3JpgMY_y_fWqZSCFSvSbC2mTHP-BKDAzF5FXQAI,1069
140
- better_notion-2.1.5.dist-info/RECORD,,
135
+ better_notion/utils/agents/workspace.py,sha256=21T0aQ2MYq60jJvaBvcdUCHZT7JENZ-4VciS5Z-5_X0,25736
136
+ better_notion-2.1.6.dist-info/METADATA,sha256=MYHP3_45OizHx44DSa7COKpPa2ByMkZXnx9966IYv9o,11096
137
+ better_notion-2.1.6.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
138
+ better_notion-2.1.6.dist-info/entry_points.txt,sha256=D0bUcP7Z00Zyjxw7r2p29T95UrwioDO0aGDoHe9I6fo,55
139
+ better_notion-2.1.6.dist-info/licenses/LICENSE,sha256=BAdN3JpgMY_y_fWqZSCFSvSbC2mTHP-BKDAzF5FXQAI,1069
140
+ better_notion-2.1.6.dist-info/RECORD,,