Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion affine/utils/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ async def post(
import json as json_lib
error_json = json_lib.loads(body)
msg = error_json.get("detail", str(error_json))
except:
except Exception:
msg = body[:200]

if output_json:
Expand Down
4 changes: 2 additions & 2 deletions affine/utils/subtensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ async def wrapper(*args, **kwargs):
if self._subtensor:
try:
await self._subtensor.close()
except:
pass
except Exception as e:
logger.debug(f"Error closing subtensor during reconnection: {e}")
self._subtensor = None

self._subtensor = await self._create_connection()
Expand Down