svn path=/main/trunk/; revision=3654
updating_file = new_protect_filename(updating_file)[0]
try:
write_atomic(updating_file, "".join(file_contents[x]))
- except IOError:
+ except (OSError, IOError), e:
+ writemsg("\n!!! %s\n" % str(e), noiselevel=-1)
+ writemsg("!!! An error occured while updating a config file:" + \
+ " '%s'\n" % updating_file, noiselevel=-1)
continue
def global_updates(mysettings, trees, prev_mtimes):