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.
- better_notion/utils/agents/workspace.py +17 -3
- {better_notion-2.1.5.dist-info → better_notion-2.1.6.dist-info}/METADATA +1 -1
- {better_notion-2.1.5.dist-info → better_notion-2.1.6.dist-info}/RECORD +6 -6
- {better_notion-2.1.5.dist-info → better_notion-2.1.6.dist-info}/WHEEL +0 -0
- {better_notion-2.1.5.dist-info → better_notion-2.1.6.dist-info}/entry_points.txt +0 -0
- {better_notion-2.1.5.dist-info → better_notion-2.1.6.dist-info}/licenses/LICENSE +0 -0
|
@@ -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
|
-
|
|
146
|
-
|
|
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
|
-
|
|
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.
|
|
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=
|
|
136
|
-
better_notion-2.1.
|
|
137
|
-
better_notion-2.1.
|
|
138
|
-
better_notion-2.1.
|
|
139
|
-
better_notion-2.1.
|
|
140
|
-
better_notion-2.1.
|
|
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,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|