neuralworm commited on
Commit
44db853
·
1 Parent(s): 7067d60

cli_clock error handling

Browse files
Files changed (2) hide show
  1. cli_clock.py +4 -1
  2. translation_cache.db +2 -2
cli_clock.py CHANGED
@@ -90,7 +90,10 @@ def display_current_verse():
90
  print(f"{TANACH_DATA[book_id]['title']}, Chapter {chapter_id + 1}, Verse {verse_id}")
91
  print("-" * 30)
92
  print(hebrew_chapter[verse_id - 1])
93
- print(english_chapter[verse_id - 1]) # Display corresponding English line
 
 
 
94
  print("-" * 30)
95
  time.sleep(1)
96
 
 
90
  print(f"{TANACH_DATA[book_id]['title']}, Chapter {chapter_id + 1}, Verse {verse_id}")
91
  print("-" * 30)
92
  print(hebrew_chapter[verse_id - 1])
93
+ try:
94
+ print(english_chapter[verse_id - 1]) # Display corresponding English line
95
+ except Exception as e:
96
+ logging.error(f"Error displaying translation: {e}")
97
  print("-" * 30)
98
  time.sleep(1)
99
 
translation_cache.db CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bf71b9e077f9376e40f2cd425b5a74373aa4ebf7e0510000c5f4e0840361e4ce
3
- size 16384
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c82cc70ba225f3440c3e4c557a66203b72983bc58efa956ffa4976599e09f96f
3
+ size 1183744