Repository: oduwsdl/ipwb

Issue:
When indexing a WARC, a CRITICAL error of a missing function is reported
Latest main branch 54a23e2

go-ipfs 0.9.1

```sh
ipwb index ./samples/warcs/5mementos.warc
2023-08-16 12:19:19,544 [CRITICAL] ipwb: name 'check_args_index' is not defined
```

Discussion:

Patch:
diff --git a/ipwb/__main__.py b/ipwb/__main__.py
index bf8ed43..2df1479 100644
--- a/ipwb/__main__.py
+++ b/ipwb/__main__.py
@@ -18,7 +18,7 @@ def main():
     check_args(sys.argv)
 
 
-def checkArgs_index(args):
+def check_args_index(args):
     # args.daemon_address is always set. Either default or by CLI
     try:
         # see if it parses


Test patch:
diff --git a/tests/test_daemon.py b/tests/test_daemon.py
index cea2b5a..375d4f9 100644
--- a/tests/test_daemon.py
+++ b/tests/test_daemon.py
@@ -29,29 +29,29 @@ def test_daemon_wrong_scheme():
     daemon = "/dnswrong/localhost/tcp/5001/http"
     args['daemon_address'] = daemon
     with pytest.raises(multiaddr_exceptions.StringParseError):
-        __main__.checkArgs_index(dotdict(args))
-        __main__.checkArgs_replay(dotdict(args))
+        __main__.check_args_index(dotdict(args))
+        __main__.check_args_replay(dotdict(args))
 
 
 def test_daemon_wrong_ip():
     daemon = "/ip4/256.999.478.444/tcp/5001/http"
     args['daemon_address'] = daemon
     with pytest.raises(multiaddr_exceptions.StringParseError):
-        __main__.checkArgs_index(dotdict(args))
-        __main__.checkArgs_replay(dotdict(args))
+        __main__.check_args_index(dotdict(args))
+        __main__.check_args_replay(dotdict(args))
 
 
 def test_daemon_wrong_protocol():
     daemon = "/dns/localhost/tcp/5001/httpwrong"
     args['daemon_address'] = daemon
     with pytest.raises(multiaddr_exceptions.StringParseError):
-        __main__.checkArgs_index(dotdict(args))
-        __main__.checkArgs_replay(dotdict(args))
+        __main__.check_args_index(dotdict(args))
+        __main__.check_args_replay(dotdict(args))
 
 
 def test_daemon_wrong_format():
     daemon = "localhost:5001"
     args['daemon_address'] = daemon
     with pytest.raises(multiaddr_exceptions.StringParseError):
-        __main__.checkArgs_index(dotdict(args))
-        __main__.checkArgs_replay(dotdict(args))
+        __main__.check_args_index(dotdict(args))
+        __main__.check_args_replay(dotdict(args))