diff --git a/src/specify_cli/workflows/_commands.py b/src/specify_cli/workflows/_commands.py index b465610d3b..8e6b00030d 100644 --- a/src/specify_cli/workflows/_commands.py +++ b/src/specify_cli/workflows/_commands.py @@ -429,7 +429,7 @@ def _read_response_within_limit(response, max_bytes: int | None = None) -> bytes if callable(getheader): try: raw_length = getheader("Content-Length") - except Exception: + except AttributeError: raw_length = None if raw_length is not None: try: