fix precommit checks

This commit is contained in:
Henri Dickson 2024-01-02 18:28:40 -05:00
parent 0f4dc3b19f
commit fb02bf8492

View file

@ -44,8 +44,8 @@ class RelayStates(StateGraph):
uri=instance.inbox_uri, uri=instance.inbox_uri,
body=instance.to_follow_ap(), body=instance.to_follow_ap(),
) )
except: except Exception as e:
logger.warning(f"Error sending follow: {instance.inbox_uri}") logger.error(f"Error sending follow request: {instance.inbox_uri} {e}")
return cls.failed return cls.failed
if response.status_code >= 200 and response.status_code < 300: if response.status_code >= 200 and response.status_code < 300:
return cls.subscribing return cls.subscribing
@ -62,8 +62,8 @@ class RelayStates(StateGraph):
uri=instance.inbox_uri, uri=instance.inbox_uri,
body=instance.to_unfollow_ap(), body=instance.to_unfollow_ap(),
) )
except: except Exception as e:
logger.error(f"Error sending unfollow {instance.inbox_uri}") logger.error(f"Error sending unfollow request: {instance.inbox_uri} {e}")
return cls.failed return cls.failed
if response.status_code >= 200 and response.status_code < 300: if response.status_code >= 200 and response.status_code < 300:
return cls.unsubscribed return cls.unsubscribed