Fix sonar findings

This commit is contained in:
Zedifus 2023-12-07 11:29:18 +00:00
parent 9e54eafd50
commit b2035eef60
2 changed files with 3 additions and 3 deletions

View File

@ -85,7 +85,7 @@ class Controller:
encoding="utf-8",
) as f:
self.auth_tracker = json.load(f)
except:
except (FileNotFoundError, json.JSONDecodeError):
self.auth_tracker = {}
def log_attempt(self, remote_ip, username):

View File

@ -10,7 +10,7 @@
<div class="card-header justify-content-between align-items-center" style="border: none;">
<div id="image-div" style="width: 100%;">
<img class="img-center" id="logo-animate" src="../static/assets/images/crafty-logo-square-1024.png"
width="20%" style="clear: both;">
alt="Crafty Logo, Crafty is loading" width="20%" style="clear: both;">
</div>
<br>
</br>
@ -70,4 +70,4 @@
});
</script>
{% end %}
{% end %}