mozilla / active-data-recipes

A repository of various activedata queries and recipes
Mozilla Public License 2.0
8 stars 24 forks source link

Comparison error in files_with_coverage.py: #70

Closed MadinaB closed 5 years ago

MadinaB commented 5 years ago

When I do:

adr files_with_coverage

I am getting following error:

Traceback (most recent call last):
  File "/usr/local/bin/adr", line 11, in <module>
    load_entry_point('active-data-recipes', 'console_scripts', 'adr')()
  File "/Users/madinabektayeva/Documents/Programming/Mozilla-OpenSource/30.10/adr/new_repo/examples/active-data-recipes/adr/cli.py", line 201, in main
    parsed_args.func(parsed_args, remainder, config)
  File "/Users/madinabektayeva/Documents/Programming/Mozilla-OpenSource/30.10/adr/new_repo/examples/active-data-recipes/adr/cli.py", line 79, in recipe_handler
    print(run_recipe(recipe, remainder, config))
  File "/Users/madinabektayeva/Documents/Programming/Mozilla-OpenSource/30.10/adr/new_repo/examples/active-data-recipes/adr/recipe.py", line 105, in run_recipe
    output = mod.run(args, config)
  File "/Users/madinabektayeva/Documents/Programming/Mozilla-OpenSource/30.10/adr/new_repo/examples/active-data-recipes/adr/recipes/files_with_coverage.py", line 40, in run
    dates = sorted(by_date.keys(), reverse=True)
TypeError: '<' not supported between instances of 'NoneType' and 'str'

After googling a while It came out that Python3 raises an error on comparison between different types, while Python2 did not from here.