Permalink
Browse files

Better debug.

  • Loading branch information...
1 parent a8dd005 commit 67697dfbffc2acc697839296d6bc94f0f923cada @shaurz committed May 22, 2012
Showing with 5 additions and 2 deletions.
  1. +2 −0 dirtree_node.py
  2. +3 −2 search.py
View
@@ -1,6 +1,7 @@
import collections
import os, os.path
import stat
+import traceback
import wx
import fileutil
@@ -132,6 +133,7 @@ def expand(self, tree, monitor, filter):
yield self._do_expand(tree, monitor, filter)
except Exception:
self.state = NODE_UNPOPULATED
+ print traceback.format_exc()
else:
self.state = NODE_POPULATED
View
@@ -72,9 +72,10 @@ def search(self):
self._search(*os.path.split(self.path))
except SearchAborted:
self.output.abort_find(self)
- except Exception:
+ except Exception, e:
self.output.end_find(self)
- print traceback.format_exc()
+ if not isinstance(e, (OSError, IOError)):
+ print traceback.format_exc()
else:
self.output.end_find(self)

0 comments on commit 67697df

Please sign in to comment.