@@ -5842,7 +5842,7 @@ def _create_bubble_manifest(
58425842 _dbg(f"Successfully wrote {len(json.dumps(manifest_data))} bytes to manifest.")
58435843 except Exception as e:
58445844 # THIS IS THE CORRECTED PART - We actually print the critical error
5845- print (f" [MANIFEST] ❌ CRITICAL ERROR writing manifest: {e}")
5845+ safe_print (f" [MANIFEST] ❌ CRITICAL ERROR writing manifest: {e}")
58465846
58475847 try:
58485848 registry_key = f"{self.parent_omnipkg.redis_key_prefix}bubble_locations"
@@ -7028,7 +7028,7 @@ def _perform_concurrent_healing(
70287028 text=True,
70297029 timeout=60,
70307030 )
7031- print (result.stdout, end="")
7031+ safe_print (result.stdout, end="")
70327032
70337033 if result.returncode == 0:
70347034 native_was_synced = True
@@ -14771,7 +14771,6 @@ def smart_uninstall(
1477114771 item_path_str = item.get("path") # Get the path safely
1477214772
1477314773 if item_type == "active":
14774- print(f"[DEL-DEBUG2] item_type={item_type!r} item_path_str={item_path_str!r} item_name={item_name!r}")
1477514774 safe_print(
1477614775 _("🗑️ Uninstalling '{}' from main environment via pip...").format(item_name)
1477714776 )
@@ -14787,7 +14786,6 @@ def smart_uninstall(
1478714786 expected_bubble_name = f"{canonicalize_name(item_name)}-{item_version}"
1478814787 expected_bubble_name_alt = f"{item_name}-{item_version}"
1478914788 expected_bubble_name_underscored = f"{item_name.replace('-', '_')}-{item_version}"
14790- print(f"[DEL-DEBUG] bubble_dir.name='{bubble_dir.name}' checking against: {expected_bubble_name!r}, {expected_bubble_name_alt!r}, {expected_bubble_name_underscored!r}")
1479114789 if bubble_dir.name in (expected_bubble_name, expected_bubble_name_alt, expected_bubble_name_underscored) and bubble_dir.is_dir():
1479214790 safe_print(_("🗑️ Deleting bubble directory: {}").format(bubble_dir))
1479314791 shutil.rmtree(bubble_dir, ignore_errors=True)
0 commit comments