Skip to content

Commit

Permalink
prefer period over colon in timestamped filenames
Browse files Browse the repository at this point in the history
Co-authored-by: Jason Weill <[email protected]>
  • Loading branch information
dlqqq and JasonWeill authored Nov 6, 2023
1 parent 9f89335 commit 0cbea34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jupyter-ai/jupyter_ai/chat_handlers/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ async def process_message(self, message: HumanChatMessage):
self.reply(response, message)

async def handle_exc(self, e: Exception, message: HumanChatMessage):
timestamp = time.strftime("%Y-%m-%d-%H:%M:%S")
timestamp = time.strftime("%Y-%m-%d-%H.%M.%S")
log_path = Path(f"jupyter-ai-logs/generate-{timestamp}.log")
log_path.parent.mkdir(parents=True, exist_ok=True)
with log_path.open("w") as log:
Expand Down

0 comments on commit 0cbea34

Please sign in to comment.