Changeset 4302

Show
Ignore:
Timestamp:
07/21/2008 08:35:31 AM (1 month ago)
Author:
ed
Message:

Fixes a problem reported by Nate Lowrie when running the new dShell for the first time with no command history.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/dabo/ui/uiwx/dShell.py

    r4297 r4302  
    393393            cmds.append({"stamp": k, "cmd": ck.get(k)}) 
    394394        dsu = dabo.db.dDataSet(cmds) 
    395         ds = dsu.sort("stamp", "desc") 
    396         return ds 
     395        if dsu: 
     396            ds = dsu.sort("stamp", "desc") 
     397            return ds 
     398        else: 
     399            return dsu 
    397400 
    398401