Cleans up any state or runtime files that chrome leaves behind when killed by a timeout or other error
()
| 275 | return cmd_args |
| 276 | |
| 277 | def chrome_cleanup(): |
| 278 | """ |
| 279 | Cleans up any state or runtime files that chrome leaves behind when killed by |
| 280 | a timeout or other error |
| 281 | """ |
| 282 | |
| 283 | from .config import IN_DOCKER |
| 284 | |
| 285 | if IN_DOCKER and lexists("/home/archivebox/.config/chromium/SingletonLock"): |
| 286 | remove_file("/home/archivebox/.config/chromium/SingletonLock") |
| 287 | |
| 288 | def ansi_to_html(text): |
| 289 | """ |
no outgoing calls
no test coverage detected