Skip to content

Commit 85aeee1

Browse files
authored
Update webArchiver.py
small str to int fix
1 parent 7826f88 commit 85aeee1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webArchiver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
if "datetimeformat" in config["DEFAULT"]:
4545
datetimeformat=config["DEFAULT"]["datetimeformat"]
4646
if "hashblocksize" in config["DEFAULT"]:
47-
hashblocksize=config["DEFAULT"]["hashblocksize"]
47+
hashblocksize=int(config["DEFAULT"]["hashblocksize"])
4848
if "hashtype" in config["DEFAULT"]:
4949
hashertype=config["DEFAULT"]["hashtype"]
5050
if "foldersave" in config["DEFAULT"]:
@@ -64,7 +64,7 @@
6464
if piargs.datetimeformat is not None:
6565
datetimeformat=piargs.datetimeformat
6666
if piargs.hashblocksize is not None:
67-
hashblocksize=piargs.hashblocksize
67+
hashblocksize=int(piargs.hashblocksize)
6868
if piargs.hashtype is not None:
6969
hashertype=piargs.hashtype
7070
#define functions

0 commit comments

Comments
 (0)