Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions solarwinds_apm/uams.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ def _read_from_file(uams_file: str) -> dict:
ATTR_UAMS_CLIENT_ID: uams_id,
ResourceAttributes.HOST_ID: uams_id,
}
# pylint: disable=broad-except
except Exception as error:
except Exception as error: # pylint: disable=broad-exception-caught
logger.debug("file error", exc_info=error)
return {}

Expand All @@ -76,8 +75,7 @@ def _read_from_api() -> dict:
ATTR_UAMS_CLIENT_ID: id,
ResourceAttributes.HOST_ID: id,
}
# pylint: disable=broad-except
except Exception as error:
except Exception as error: # pylint: disable=broad-exception-caught
logger.debug("api response error", exc_info=error)
return {}

Expand Down
Loading