improve confusing message about saving key when it is erased
parent
8dd97e12e7
commit
2e99e1d72d
|
@ -377,7 +377,10 @@ class pronsole(cmd.Cmd):
|
||||||
os.rename(rci.name,rci.name+"~old")
|
os.rename(rci.name,rci.name+"~old")
|
||||||
rco.close()
|
rco.close()
|
||||||
os.rename(rco.name,self.rc_filename)
|
os.rename(rco.name,self.rc_filename)
|
||||||
print "Saved '"+key+"' to '"+self.rc_filename+"'"
|
if definition != "":
|
||||||
|
print "Saved '"+key+"' to '"+self.rc_filename+"'"
|
||||||
|
else:
|
||||||
|
print "Removed '"+key+"' from '"+self.rc_filename+"'"
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
print "Saving failed for",key+":",str(e)
|
print "Saving failed for",key+":",str(e)
|
||||||
finally:
|
finally:
|
||||||
|
|
Loading…
Reference in New Issue