improve confusing message about saving key when it is erased

master
Keegi 2011-08-04 14:07:19 +03:00
parent 8dd97e12e7
commit 2e99e1d72d
1 changed files with 4 additions and 1 deletions

View File

@ -377,7 +377,10 @@ class pronsole(cmd.Cmd):
os.rename(rci.name,rci.name+"~old")
rco.close()
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:
print "Saving failed for",key+":",str(e)
finally: