looker-open-source / henry

A command line tool for Looker instance cleanup
MIT License
79 stars 27 forks source link

Running henry analyze command without any argument #21

Open moseleyi opened 4 years ago

moseleyi commented 4 years ago

Not a massive issue but probably something that can be cleaned up. If we use henry analyze without anything else, we get the following error:

Traceback (most recent call last):
  File "c:\python37\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\python37\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Python37\Scripts\henry.exe\__main__.py", line 7, in <module>
  File "c:\python37\lib\site-packages\henry\cli.py", line 18, in main
    analyze.Analyze.run(user_input)
  File "c:\python37\lib\site-packages\henry\commands\analyze.py", line 19, in run
    analyze.output(data=cast(fetcher.TResult, result))
UnboundLocalError: local variable 'result' referenced before assignment