Don't just complain, fail
authorPaul Crowley <paul@lshift.net>
Fri, 20 Feb 2009 11:10:34 +0000
changeset 42 0e77495e91e2
parent 41 de0c61b778fa
child 43 0a7fc4652793
Don't just complain, fail
src/do-refresh-auth
--- a/src/do-refresh-auth	Fri Feb 20 11:09:28 2009 +0000
+++ b/src/do-refresh-auth	Fri Feb 20 11:10:34 2009 +0000
@@ -36,8 +36,7 @@
         for fn in files:
             ffn = os.path.join(root, fn)
             if not ffn.startswith(kr):
-                print "Weird, walk returned unexpected result"
-                continue
+                raise Exception("Inconsistent behaviour in os.walk, bailing")
             #print "Processing file", ffn
             keyname = ffn[len(kr):]
             if not ruleset.goodpath(keyname):