funannotate icon indicating copy to clipboard operation
funannotate copied to clipboard

TypeError: '>' not supported between instances of 'NoneType' and 'int'

Open ad010902 opened this issue 10 months ago • 2 comments

Hi, I catch bug below

Traceback (most recent call last): File "/home/duongnguyen/.local/bin/funannotate", line 8, in sys.exit(main()) File "/home/duongnguyen/.local/lib/python3.6/site-packages/funannotate/funannotate.py", line 717, in main mod.main(arguments) File "/home/duongnguyen/.local/lib/python3.6/site-packages/funannotate/sort.py", line 81, in main args.input, args.base, args.out, minlen=args.minlen, simplify=args.simplify File "/home/duongnguyen/.local/lib/python3.6/site-packages/funannotate/sort.py", line 37, in SortRenameHeaders if minlen > 0: TypeError: '>' not supported between instances of 'NoneType' and 'int'

ad010902 avatar Apr 19 '24 03:04 ad010902

Currently having the same issue after suddenly being asked to run export funannotate_db again

ydanylko avatar May 23 '24 14:05 ydanylko

fix seems to be to specify a minlen, I chose 1 and mine worked, hope this helps

ydanylko avatar May 23 '24 15:05 ydanylko