(path)
| 1 | import json |
| 2 | |
| 3 | def load_config(path): |
| 4 | try: |
| 5 | with open(path, "r") as f: |
| 6 | return json.load(f) |
| 7 | except FileNotFoundError: |
| 8 | print(f"Config not found: {path}") |
| 9 | return {} |
| 10 | except json.JSONDecodeError as e: |
| 11 | print(f"Invalid JSON: {e}") |
| 12 | return {} |
| 13 | |
| 14 | def safe_divide(a, b): |
| 15 | if b == 0: |
nothing calls this directly
no outgoing calls
no test coverage detected