#22 Remove document menu error when no docs found

v1.3a2
closed-fixed
Interface (13)
5
2003-05-24
2003-05-23
Frank
No

The "remove document" menu produce a mistake when
there's no document to remove. Traceback:

AppFrame-OnMnuFileRemoveDocument None None
Traceback (most recent call last):
File "C:\Data\dev\cvs\pyut2\src\AppFrame.py", line
925, in _OnMnuFileRemoveDocument
displayWarning(_("No document to remove"))
File "C:\Data\dev\cvs\pyut2\src\pyutUtils.py", line
91, in displayWarning
em.newWarning(msg, title, parent)
File "C:\Data\dev\cvs\pyut2\src\ErrorManager.py",
line 247, in newWarning
addToLogFile("Warning : " + title, msg)
TypeError: cannot concatenate 'str' and 'NoneType' objects

It seems that 'title' is set to none so the concate
can't happen.

Discussion

  • Cédric Dutoit

    Cédric Dutoit - 2003-05-24

    Logged In: YES
    user_id=64541

    Fixed 20030524.
    This was a type error solved by setting type to string.

     
  • Cédric Dutoit

    Cédric Dutoit - 2003-05-24
    • milestone: 283281 --> v1.3a2
    • assigned_to: nobody --> dutoitc
    • status: open --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks