Skip to content

Commit dbc55c4

Browse files
authored
log error more precisely
1 parent a099f57 commit dbc55c4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

builder/frameworks/component_manager.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,8 +484,10 @@ def _remove_ignored_lib_includes(self) -> None:
484484
f.write(content)
485485
self._log_change(f"Updated build file ({total_removed} total removals)")
486486

487-
except Exception as e:
487+
except (IOError, OSError) as e:
488488
self._log_change(f"Error processing libraries: {str(e)}")
489+
except Exception as e:
490+
self._log_change(f"Unexpected error processing libraries: {str(e)}")
489491

490492
def _validate_changes(self, original_content: str, new_content: str) -> bool:
491493
"""

0 commit comments

Comments
 (0)