Commit 0fc6478c authored by Andreas Freise's avatar Andreas Freise
Browse files

changing the 'removing exisiting object' message to only appear when verbose is true

parent ab1eb319
......@@ -1239,7 +1239,8 @@ class kat(object):
if obj != None and not isinstance(obj, six.string_types):
if self.hasNamedObject(obj.name):
getattr(self, obj.name).remove()
print ("Removed existing object '{0}' of type {1} to add line '{2}'".format(obj.name, obj.__class__, line))
if self.verbose:
print ("Removed existing object '{0}' of type {1} to add line '{2}'".format(obj.name, obj.__class__, line))
self.add(obj, block=self.__currentTag)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment