Skip to content

Commit

Permalink
fix: bug if 'temporary.txt' does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-girard committed Oct 3, 2023
1 parent 7b75a3d commit 2ed8326
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ad_miner/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from pathlib import Path
import time
import traceback
import os

# Local library imports
from ad_miner.sources.modules import logger, main_page, render_order, utils
Expand Down Expand Up @@ -184,7 +185,8 @@ def main() -> None:

neo4j.close()

(Path().cwd() / 'temporary.txt').unlink()
if os.path.exists(Path().cwd() / 'temporary.txt'):
(Path().cwd() / 'temporary.txt').unlink()

logger.print_success(f"Program finished in {utils.timer_format(time.time() - start)}!")

Expand Down

0 comments on commit 2ed8326

Please sign in to comment.