dabo Commit
Revision 4302
Date: 2008-07-21 08:35:31 -0700 (Mon, 21 Jul 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4302

Changed:
U   trunk/dabo/ui/uiwx/dShell.py

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


Diff:
Modified: trunk/dabo/ui/uiwx/dShell.py
===================================================================
--- trunk/dabo/ui/uiwx/dShell.py        2008-07-21 15:32:55 UTC (rev 4301)
+++ trunk/dabo/ui/uiwx/dShell.py        2008-07-21 15:35:31 UTC (rev 4302)
@@ -392,8 +392,11 @@
                for k in ck.getPrefKeys():
                        cmds.append({"stamp": k, "cmd": ck.get(k)})
                dsu = dabo.db.dDataSet(cmds)
-               ds = dsu.sort("stamp", "desc")
-               return ds
+               if dsu:
+                       ds = dsu.sort("stamp", "desc")
+                       return ds
+               else:
+                       return dsu
 
 
        def historyPop(self):




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]

Reply via email to