← Back to team overview

openlp-core team mailing list archive

[Bug 1310623] [NEW] SongShowPlus Import fails when CCLI number has text in it

 

Public bug reported:

>From http://support.openlp.org/scp/tickets.php?id=2314

We need to clear the text from the string before converting to int.

Traceback (most recent call last):
File "/usr/share/openlp/openlp/core/ui/wizard.py", line 188, in
onCurrentIdChanged
self.performWizard()
File "/usr/share/openlp/openlp/plugins/songs/forms/songimportform.py",
line 391, in performWizard
importer.doImport()
File "/usr/share/openlp/openlp/plugins/songs/lib/songshowplusimport.py",
line 155, in doImport
self.ccliNumber = int(data)
ValueError: invalid literal for int() with base 10: 'CCL Licence number:
129265'

** Affects: openlp
     Importance: Medium
         Status: New

** Affects: openlp/2.0
     Importance: Medium
         Status: New

** Affects: openlp/trunk
     Importance: Medium
         Status: New

** Changed in: openlp
   Importance: Undecided => Medium

** Also affects: openlp/2.0
   Importance: Undecided
       Status: New

** Also affects: openlp/trunk
   Importance: Medium
       Status: New

** Changed in: openlp/2.0
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of OpenLP
Core, which is subscribed to OpenLP.
https://bugs.launchpad.net/bugs/1310623

Title:
  SongShowPlus Import fails when CCLI number has text in it

Status in OpenLP - Worship Presentation Software:
  New
Status in OpenLP 2.0 series:
  New
Status in OpenLP trunk series:
  New

Bug description:
  From http://support.openlp.org/scp/tickets.php?id=2314

  We need to clear the text from the string before converting to int.

  Traceback (most recent call last):
  File "/usr/share/openlp/openlp/core/ui/wizard.py", line 188, in
  onCurrentIdChanged
  self.performWizard()
  File "/usr/share/openlp/openlp/plugins/songs/forms/songimportform.py",
  line 391, in performWizard
  importer.doImport()
  File "/usr/share/openlp/openlp/plugins/songs/lib/songshowplusimport.py",
  line 155, in doImport
  self.ccliNumber = int(data)
  ValueError: invalid literal for int() with base 10: 'CCL Licence number:
  129265'

To manage notifications about this bug go to:
https://bugs.launchpad.net/openlp/+bug/1310623/+subscriptions


Follow ups

References