original_docstring: Block the charm when no charms contribute scrape jobs.
docstring: Block the charm when no charms contribute scrape jobs.
docstring_tokens: Block the charm when no charms contribute scrape jobs .
code: def _handle_upstream_relation_broken(self, _):
          """Block the charm when no charms contribute scrape jobs."""
          if not self.unit.is_leader():
              return
  
          if self._has_upstream_relations():
              self.unit.status = BlockedStatus("upstream relations missing")
              return
code_tokens: def _handle_upstream_relation_broken ( self , _ ) : if not self . unit . is_leader ( ) : return if self . _has_upstream_relations ( ) : self . unit . status = BlockedStatus ( "upstream relations missing" ) return
short_docstring: Block the charm when no charms contribute scrape jobs.
short_docstring_tokens: Block the charm when no charms contribute scrape jobs .
comment: """Block the charm when no charms contribute scrape jobs."""