Skip to content

Commit 98983be

Browse files
committed
Fixed bug with missing history path
1 parent 360ae6f commit 98983be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

interpreter/terminal_interface/contributing_conversations.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ def is_conversation_path(path: str):
139139

140140
history_path = interpreter.conversation_history_path
141141
all_conversations: List[List] = []
142-
for mpath in os.listdir(history_path):
142+
conversation_files = os.listdir(history_path) if os.path.exists(history_path) else []
143+
for mpath in conversation_files:
143144
if not is_conversation_path(mpath):
144145
continue
145146
full_path = os.path.join(history_path, mpath)

0 commit comments

Comments
 (0)