smglom_stats.py broken
I get
faustaff-010-020-010-039:bin kohlhase$ smglom_stats.py ../..
Traceback (most recent call last):
File "/Users/kohlhase/localmh/MathHub/smglom/meta-inf/bin/smglom_harvest.py", line 514, in gather_data_for_repo
harvest_nl(string, name, lang, ctx)
File "/Users/kohlhase/localmh/MathHub/smglom/meta-inf/bin/smglom_harvest.py", line 424, in harvest_nl
ctx.log("No matches found in file", 2)
File "/Users/kohlhase/localmh/MathHub/smglom/meta-inf/bin/smglom_harvest.py", line 126, in log
self.logger.log(message, minverbosity,
AttributeError: 'int' object has no attribute 'log'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/kohlhase/localmh/MathHub/smglom/meta-inf/bin/smglom_harvest.py", line 529, in gather_data_for_all_repos
gather_data_for_repo(directory, ctx)
File "/Users/kohlhase/localmh/MathHub/smglom/meta-inf/bin/smglom_harvest.py", line 518, in gather_data_for_repo
ctx.log(f"An internal error occured during processing:\n'{exception_to_string(ex)}'", 0)
File "/Users/kohlhase/localmh/MathHub/smglom/meta-inf/bin/smglom_harvest.py", line 126, in log
self.logger.log(message, minverbosity,
AttributeError: 'int' object has no attribute 'log'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./smglom_stats.py", line 105, in <module>
harvest.gather_data_for_all_repos(sys.argv[-1], ctx)
File "/Users/kohlhase/localmh/MathHub/smglom/meta-inf/bin/smglom_harvest.py", line 541, in gather_data_for_all_repos
gather_data_for_all_repos(subdirpath, ctx)
File "/Users/kohlhase/localmh/MathHub/smglom/meta-inf/bin/smglom_harvest.py", line 531, in gather_data_for_all_repos
ctx.log("Error while obtaining statistics for repo " + os.path.join(directory, repo) + ":\n" + exception_to_string(ex), forfile=False)
NameError: name 'repo' is not defined