+
+ self.debug('adding relation: {} -> {}'.format(r1, r2))
+ try:
+ await model.add_relation(relation1=r1, relation2=r2)
+ except JujuAPIError as e:
+ # If one of the applications in the relationship doesn't exist, or the relation has already been added,
+ # let the operation fail silently.
+ if 'not found' in e.message:
+ return
+ if 'already exists' in e.message:
+ return
+ # another execption, raise it
+ raise e