Skip to content

Commit 4519005

Browse files
committed
Fixes bug where ts can be
1 parent a569469 commit 4519005

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎recan/VERSION‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.2.12
1+
0.2.13

‎recan/utils.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def format_duration(seconds: float) -> str:
3535

3636

3737
def format_ts(ts: datetime) -> str:
38-
return ts.strftime("%Y-%m-%d %H:%M:%S")
38+
return ts.strftime("%Y-%m-%d %H:%M:%S") if ts else "N/A"
3939

4040

4141
def language_from_extension(document: str) -> str:

0 commit comments

Comments
 (0)