Commit 54ffe037 authored by Anael Beutot's avatar Anael Beutot
Browse files

Updated sub_tags handler for new API.

parent ae9a8f4a
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -229,11 +229,11 @@ class MainLoop(object):

    # RPC handlers definitions
    @threadless
    def sub_tags(self, sub_id, tags=None, noresolve_tags=None):
    def sub_tags(self, sub_id, tags=None):
        if sub_id == '__main__':
            # FIXME should we raise ?
            logger.debug('Invalid request for sub object')
            return
            return {}

        sub_db = self.tag_db.get(sub_id)
        if sub_db is None:
@@ -241,7 +241,7 @@ class MainLoop(object):
            logger.debug('Failed to find sub_id %s', sub_id)
            return {}

        return get_tags(sub_db, tags, noresolve_tags)
        return get_tags(sub_db, tags)
    # End RPC handlers definitions

    def reset_handler(self, name, handl):