Remove invalid permissions exception.

Once things like locks are added, this error shouldn't be possible as it will
have occurred earlier.
This commit is contained in:
Brad Warren 2017-08-04 09:57:44 -07:00
parent 61c2209110
commit 66ba0b5276

View file

@ -150,9 +150,6 @@ class Installer(plugins_common.Plugin):
self.new_cf += line
self.new_cf += sep + new_cf_lines
if not os.access(self.fn, os.W_OK):
raise Exception("Can't write to %s, please re-run as root."
% self.fn)
with fopen(self.fn, "w") as f:
f.write(self.new_cf)