Skip to content

Commit a38a0e6

Browse files
committed
Fix bug not finding USFM Bibles
1 parent 0b86a84 commit a38a0e6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

USFMBible.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
from gettext import gettext as _
3333

34-
LastModifiedDate = '2018-01-18' # by RJH
34+
LastModifiedDate = '2018-01-21' # by RJH
3535
ShortProgName = "USFMBible"
3636
ProgName = "USFM Bible handler"
3737
ProgVersion = '0.75'
@@ -161,6 +161,7 @@ def USFMBibleFileCheck( givenFolderName, strictCheck=True, autoLoad=False, autoL
161161
if not discountSSF:
162162
# if there's an SSF, we won't accept it as a USFM Bible, because it should be opened as a PTX7 Bible
163163
numFound += 1
164+
else: numFound += 1
164165
if numFound:
165166
if BibleOrgSysGlobals.verbosityLevel > 2: print( exp("USFMBibleFileCheck got {} in {}").format( numFound, givenFolderName ) )
166167
if numFound == 1 and (autoLoad or autoLoadBooks):
@@ -223,6 +224,7 @@ def USFMBibleFileCheck( givenFolderName, strictCheck=True, autoLoad=False, autoL
223224
# if there's an SSF, we won't accept it as a USFM Bible, because it should be opened as a PTX7 Bible
224225
foundProjects.append( tryFolderName )
225226
numFound += 1
227+
else: numFound += 1
226228
if numFound:
227229
if BibleOrgSysGlobals.verbosityLevel > 2: print( exp("USFMBibleFileCheck foundProjects {} {}").format( numFound, foundProjects ) )
228230
if numFound == 1 and (autoLoad or autoLoadBooks):
@@ -718,7 +720,7 @@ def demo():
718720
result3.pickle()
719721
##result3.toDrupalBible()
720722
result3.doAllExports( wantPhotoBible=False, wantODFs=False, wantPDFs=False )
721-
723+
halt
722724

723725
if 1: # Load and process some of our test versions
724726
for j,(name, encoding, testFolder) in enumerate( (

0 commit comments

Comments
 (0)