commit
8cfdf0cfc1
@ -201,14 +201,13 @@ class Bitrot(object):
|
|||||||
# The file disappeared between listing existing paths and
|
# The file disappeared between listing existing paths and
|
||||||
# this run or is (temporarily?) locked with different
|
# this run or is (temporarily?) locked with different
|
||||||
# permissions. We'll just skip it for now.
|
# permissions. We'll just skip it for now.
|
||||||
if self.verbosity:
|
print(
|
||||||
print(
|
'\rwarning: `{}` is currently unavailable for '
|
||||||
'\rwarning: `{}` is currently unavailable for '
|
'reading: {}'.format(
|
||||||
'reading: {}'.format(
|
p_uni, ex,
|
||||||
p_uni, ex,
|
),
|
||||||
),
|
file=sys.stderr,
|
||||||
file=sys.stderr,
|
)
|
||||||
)
|
|
||||||
continue
|
continue
|
||||||
|
|
||||||
raise # Not expected? https://github.com/ambv/bitrot/issues/
|
raise # Not expected? https://github.com/ambv/bitrot/issues/
|
||||||
@ -222,13 +221,12 @@ class Bitrot(object):
|
|||||||
try:
|
try:
|
||||||
new_sha1 = sha1(p, self.chunk_size)
|
new_sha1 = sha1(p, self.chunk_size)
|
||||||
except (IOError, OSError) as e:
|
except (IOError, OSError) as e:
|
||||||
if self.verbosity:
|
print(
|
||||||
print(
|
'\rwarning: cannot compute hash of {} [{}]'.format(
|
||||||
'\rwarning: cannot compute hash of {} [{}]'.format(
|
p, errno.errorcode[e.args[0]],
|
||||||
p, errno.errorcode[e.args[0]],
|
),
|
||||||
),
|
file=sys.stderr,
|
||||||
file=sys.stderr,
|
)
|
||||||
)
|
|
||||||
continue
|
continue
|
||||||
|
|
||||||
cur.execute('SELECT mtime, hash, timestamp FROM bitrot WHERE '
|
cur.execute('SELECT mtime, hash, timestamp FROM bitrot WHERE '
|
||||||
|
Loading…
x
Reference in New Issue
Block a user