Close the connection.
(self)
| 126 | raise StashError(f"Failed to connect to arbiter: {e}") from e |
| 127 | |
| 128 | def _close(self): |
| 129 | """Close the connection.""" |
| 130 | if self._sock is not None: |
| 131 | try: |
| 132 | self._sock.close() |
| 133 | except Exception: |
| 134 | pass |
| 135 | self._sock = None |
| 136 | |
| 137 | def _execute(self, op, table, key=None, value=None, pattern=None): |
| 138 | """ |