Skip to content

KeyError: 'MANDATORY' #1

Description

@gokhannY

Hey there,

I just wanted to try your code and got an error. I did not change any config file except that

change import PRF to import prf

in the "TESS-cont.py" file. When I tried to use, got an error as;

@|---------------------@|
        TESS-cont       
@|---------------------@|

Traceback (most recent call last):
  File "/home/gokhan/Downloads/TESS-cont.py", line 84, in <module>
    MANDATORY = config_object['MANDATORY']
  File "/usr/lib/python3.10/configparser.py", line 965, in __getitem__
    raise KeyError(key)
KeyError: 'MANDATORY'

All I did was as you suggested;

python TESS-cont.py TOI-5005_S65.ini

Both files, "TESS-cont.py" and "TOI-5005_S65.ini" are in the same directory.
What might be the problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions