Describe the bug
When trying to output to JSON format, if no position have been given, a Python TypeError is thrown.
To Reproduce
$ kosmorro -f json
Traceback (most recent call last):
File "/usr/bin/kosmorro", line 27, in <module>
sys.exit(main())
File "/usr/lib/python3.9/site-packages/_kosmorro/main.py", line 126, in main
print(output)
File "/usr/lib/python3.9/site-packages/_kosmorro/dumper.py", line 73, in __str__
return self.to_string()
File "/usr/lib/python3.9/site-packages/_kosmorro/dumper.py", line 88, in to_string
"ephemerides": [
TypeError: 'NoneType' object is not iterable
Expected behavior
A JSON output similar to the following should be output:
Describe the bug When trying to output to JSON format, if no position have been given, a Python TypeError is thrown.
To Reproduce
Expected behavior A JSON output similar to the following should be output:
Your configuration (please complete the following information):