Skip to content
Snippets Groups Projects
Unverified Commit 8b04ec8e authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

sigh ... use the right variable name

parent 45c1d751
No related branches found
No related tags found
1 merge request!100Windows CI
...@@ -515,10 +515,10 @@ def get_storage_index_share_size(sharepath): ...@@ -515,10 +515,10 @@ def get_storage_index_share_size(sharepath):
with open(sharepath) as share_file: with open(sharepath) as share_file:
header = share_file.read(calcsize(fmt)) header = share_file.read(calcsize(fmt))
if len(share_data_length_bytes) != calcsize(fmt): if len(header) != calcsize(fmt):
raise ValueError( raise ValueError(
"Tried to read 4 bytes of share data length from share, got {!r} instead.".format( "Tried to read 4 bytes of share data length from share, got {!r} instead.".format(
share_data_length_bytes, header,
), ),
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment