mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-25 16:51:00 +00:00
fix precommit checks
This commit is contained in:
parent
0f4dc3b19f
commit
fb02bf8492
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue