diff --git a/ennstatus/api/views.py b/ennstatus/api/views.py --- a/ennstatus/api/views.py +++ b/ennstatus/api/views.py @@ -91,8 +91,13 @@ def update(): current_app.logger.warning(' '.join([str(e), str(data)])) return str(e), 409, {'Content-Type': 'text/plain'} - if server.type in ('exit', 'relay'): + try: server.update_weights() + except NotImplementedError: + pass + except requests.HTTPError as e: + current_app.logger.error(str(e), exc_info=True) + pass try: server.save()