save as => cancel
Bug #507137 reported by
Matthieu Bizien
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
perroquet |
Fix Committed
|
Low
|
Unassigned |
Bug Description
If you click on "save as" then on "cancel" you have an exception
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
newTitle += " - " + title
TypeError: cannot concatenate 'str' and 'NoneType' objects
Changed in perroquet: | |
status: | New → Triaged |
importance: | Undecided → Low |
milestone: | none → 1.1.0 |
Changed in perroquet: | |
status: | Triaged → Fix Committed |
To post a comment you must log in.
The issue is that if you click on cancel, you willn't have "" but None. So I have a patch:
class Core(object):
def Save(self, saveAs = False):
if saveAs or self.outputSavePath == "":
self. outputSavePath = self.gui. AskSavePath( )
return
if self.outputSavePath == None:
saver = ExerciceSaver()