mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 11:26:56 -08:00
silence daily-maintenance exceptions
This commit is contained in:
parent
aecaab691b
commit
8d6ab2a6f5
1 changed files with 2 additions and 3 deletions
|
@ -264,7 +264,6 @@ def register(app):
|
|||
current_app.logger.info(f"{instance.domain} has no well-known/nodeinfo response")
|
||||
except Exception as e:
|
||||
db.session.rollback()
|
||||
current_app.logger.error(f"Error processing instance {instance.domain}: {e}")
|
||||
instance.failures += 1
|
||||
finally:
|
||||
nodeinfo.close()
|
||||
|
@ -284,7 +283,7 @@ def register(app):
|
|||
instance.nodeinfo_href = None
|
||||
except Exception as e:
|
||||
db.session.rollback()
|
||||
current_app.logger.error(f"Error processing nodeinfo for {instance.domain}: {e}")
|
||||
instance.failures += 1
|
||||
finally:
|
||||
node.close()
|
||||
db.session.commit()
|
||||
|
@ -314,7 +313,7 @@ def register(app):
|
|||
InstanceRole.role == 'admin').delete()
|
||||
except Exception as e:
|
||||
db.session.rollback()
|
||||
current_app.logger.error(f"Error updating admins for {instance.domain}: {e}")
|
||||
instance.failures += 1
|
||||
finally:
|
||||
if response:
|
||||
response.close()
|
||||
|
|
Loading…
Reference in a new issue