5f83674
1
2
3
4
5
def safe_print(msg): try: print(msg) except Exception as e: print(f"Error printing message: {e}")