Jun-15-2022, 07:33 AM
Hi,
I have this code below:
I have this code below:
import configparser import graph def main(): # print('Python Graph Tutorial\n') # Load settings config = configparser.ConfigParser() config.read(['config.cfg', 'config.dev.cfg']) azureSettings = config['azure'] main()And I'm getting this error:
Error:Traceback (most recent call last):
File "C:\Hosea\pythonProjects_Test\main.py", line 16, in <module>
main()
File "C:\Hosea\pythonProjects_Test\main.py", line 14, in main
azureSettings = config['azure']
File "C:\Users\S951378\AppData\Local\Programs\Python\Python39\lib\configparser.py", line 960, in __getitem__
raise KeyError(key)
KeyError: 'azure'
Please help.