Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.

Commit 6b14e29

Browse files
fix #62: no compare when file does not exist
1 parent 46721cd commit 6b14e29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bak/commands/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def __prep_list_row(_bakfile,
205205
_identified_baks,
206206
i):
207207
# Apply identifying markers to indices
208-
if compare:
208+
if Path(current_filename).exists() and compare:
209209
current_version_marker = \
210210
Text("$ ") if compare_files(
211211
_bakfile.bakfile_loc, current_filename) else None

0 commit comments

Comments
 (0)