mirror of
https://github.com/janeczku/calibre-web
synced 2025-10-15 07:37:40 +00:00
Satisfy "Codacy/PR Quality Review"
This commit is contained in:
@@ -552,7 +552,7 @@ def is_sha1(sha1):
|
||||
if len(sha1) != 40:
|
||||
return False
|
||||
try:
|
||||
temp = int(sha1, 16)
|
||||
int(sha1, 16)
|
||||
except ValueError:
|
||||
return False
|
||||
return True
|
||||
|
Reference in New Issue
Block a user