Skip to content

Commit

Permalink
Fix trhe fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vingerha committed Mar 29, 2024
1 parent 316fe67 commit 426c412
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/gtfs2/gtfs_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,8 @@ def remove_datasource(hass, path, filename):
os.remove(os.path.join(gtfs_dir, filename + "_temp_out.zip"))
if os.path.exists(os.path.join(gtfs_dir, filename + ".sqlite-journal")):
os.remove(os.path.join(gtfs_dir, filename + ".sqlite-journal"))
if os.path.exists(os.path.join(gtfs_dir, filename + ".zip")):
os.remove(os.path.join(gtfs_dir, filename + ".zip"))
return "removed"

def check_extracting(hass, gtfs_dir,file):
Expand Down

0 comments on commit 426c412

Please sign in to comment.