(Arne Babenhauserheide)
2014-02-08: debug output when writing bugs file. debug output when writing bugs file.
diff --git a/staticsite.py b/staticsite.py --- a/staticsite.py +++ b/staticsite.py @@ -656,7 +656,8 @@ def writebugs(ui, repo, target, name): with open(bugsfile) as bf: if not bugsfile.read() == content: raise Exception("bugfile content does not match content to write. Needs overwriting.") - except: # generic exception: If anything went wrong, we need to write the file. + except Exception as e: # generic exception: If anything went wrong, we need to write the file. + print "Overwriting bugs file", bugsfile, "; Reason:", e with open(bugsfile, "w") as bf: bf.write(content)