Changeset - 502f0d532fd0
[Not reviewed]
default
0 1 0
drewp@bigasterisk.com - 12 years ago 2013-06-15 07:16:11
drewp@bigasterisk.com
try harder not to lose notifications on a file after one edit in emacs
Ignore-this: a1dc276d1f953ec9978a10e9744c674a
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
light9/rdfdb/graphfile.py
Show inline comments
 
@@ -58,6 +58,7 @@ class GraphFile(object):
 
        notifier.watch(FilePath(path), callbacks=[self.notify])
 
      
 
    def notify(self, notifier, filepath, mask):
 
        try:
 
        maskNames = humanReadableMask(mask)
 
        if maskNames[0] == 'delete_self':
 
            if not filepath.exists():
 
@@ -84,7 +85,7 @@ class GraphFile(object):
 
            return
 
            
 
        log.info("%s needs reread because of %s event", filepath, maskNames)
 
        try:
 

	
 
            self.reread()
 
        except Exception:
 
            traceback.print_exc()
0 comments (0 inline, 0 general)