message: common: refactor try/catch block
diff: @@ -691,7 +691,16 @@ async function monitorNetworkPauses(
  contracts: NetworkContracts,
  networkSubgraph: NetworkSubgraph,
  ): Promise<Eventual<boolean>> {
  + let networkPaused: boolean
  try {
  + networkPaused = await contracts.controller.paused()
  + } catch (error) {
  + logger.error(`Failed to check for network pause with contracts controller`, {
  + suberror: IndexerErrorCode.IE007,
  + cause: error.message,
  + })
  + throw indexerError(IndexerErrorCode.IE007, `Failed to check for network pause`)
  + }
  return timer(60_000)
  .reduce(async (currentlyPaused) => {
  try {
  @@ -721,18 +730,11 @@ async function monitorNetworkPauses(
  })
  return currentlyPaused
  }
  - }, await contracts.controller.paused())
  + }, networkPaused)
  .map((paused) => {
  logger.info(paused ? `Network paused` : `Network active`)
  return paused
  })
  - } catch (error) {
  - logger.error(`Failed to check for network pause with contracts controller`, {
  - suberror: IndexerErrorCode.IE007,
  - cause: error.message,
  - })
  - throw indexerError(IndexerErrorCode.IE007, `Failed to check for network pause`)
  - }
  }
  // TODO: Move to NetworkMonitor
  