mirror of
https://github.com/janeczku/calibre-web
synced 2024-10-31 15:20:28 +00:00
Satisfy "Codacy/PR Quality Review"
This commit is contained in:
parent
50ded1afc1
commit
e08eccba5a
@ -552,7 +552,7 @@ def is_sha1(sha1):
|
|||||||
if len(sha1) != 40:
|
if len(sha1) != 40:
|
||||||
return False
|
return False
|
||||||
try:
|
try:
|
||||||
temp = int(sha1, 16)
|
int(sha1, 16)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from builtins import OSError
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from googleapiclient.errors import HttpError
|
from googleapiclient.errors import HttpError
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
Loading…
Reference in New Issue
Block a user