Commit e360a294 authored by Anael Beutot's avatar Anael Beutot Committed by Antoine Millet
Browse files

Fixed TagConflictError message

parent a6aca833
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -324,7 +324,8 @@ class TagDB(object):

    def add_tag(self, tag):
        if tag.name in self.db['__main__']:
            raise TagConflict('A tag with the same name is already registered')
            raise TagConflict(
                'A tag with the name %s is already registered' % tag.name)

        # first add the tag to the child db, in case of conflict in the parent,
        # the tag is recorded in the child thus if the latter's parent is
@@ -345,7 +346,8 @@ class TagDB(object):

    def add_sub_tag(self, sub_id, tag):
        if tag.name in self.db[sub_id]:
            raise TagConflict('A tag with the same name is already registered')
            raise TagConflict(
                'A tag with the name %s is already registered' % tag.name)

        self.db[sub_id][tag.name] = tag
        if self._parent is not None: