Check path, but don't let exceptions raise
(path)
| 32 | #----------------------------------------------------------------------------- |
| 33 | |
| 34 | def _safe_exists(path): |
| 35 | """Check path, but don't let exceptions raise""" |
| 36 | try: |
| 37 | return os.path.exists(path) |
| 38 | except Exception: |
| 39 | return False |
| 40 | |
| 41 | def _merge(d1, d2): |
| 42 | """Like update, but merges sub-dicts instead of clobbering at the top level. |