mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-25 08:41: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,
|
||||
body=instance.to_follow_ap(),
|
||||
)
|
||||
except:
|
||||
logger.warning(f"Error sending follow: {instance.inbox_uri}")
|
||||
except Exception as e:
|
||||
logger.error(f"Error sending follow request: {instance.inbox_uri} {e}")
|
||||
return cls.failed
|
||||
if response.status_code >= 200 and response.status_code < 300:
|
||||
return cls.subscribing
|
||||
|
@ -62,8 +62,8 @@ class RelayStates(StateGraph):
|
|||
uri=instance.inbox_uri,
|
||||
body=instance.to_unfollow_ap(),
|
||||
)
|
||||
except:
|
||||
logger.error(f"Error sending unfollow {instance.inbox_uri}")
|
||||
except Exception as e:
|
||||
logger.error(f"Error sending unfollow request: {instance.inbox_uri} {e}")
|
||||
return cls.failed
|
||||
if response.status_code >= 200 and response.status_code < 300:
|
||||
return cls.unsubscribed
|
||||
|
|
Loading…
Reference in a new issue