~trb143/openlp/themecombo-24

« back to all changes in this revision

Viewing changes to openlp/core/utils/__init__.py

  • Committer: Tim Bentley
  • Author(s): tomasgroth at yahoo
  • Date: 2016-05-24 16:16:57 UTC
  • mfrom: (2630.2.10 24bugfix-backport2)
  • Revision ID: tim.bentley@gmail.com-20160524161657-1yv5l6f9o3q7qq7p
Fix of tracback during SongPro import. Fixes bug 1582152.
Backport of song-search-fix from trunk
Added support for using the new mutool in mudraw mode
Fix crosswalk bible list download
Fix traceback if bible list download fails.

Show diffs side-by-side

added added

removed removed

Lines of Context:
529
529
    key = [int(part) if part.isdigit() else get_locale_key(part) for part in key]
530
530
    # Python 3 does not support comparison of different types anymore. So make sure, that we do not compare str
531
531
    # and int.
532
 
    if string[0].isdigit():
 
532
    if string and string[0].isdigit():
533
533
        return [b''] + key
534
534
    return key
535
535