Python Exceptions

stefanhu

Chieftain
Joined
Jan 6, 2014
Messages
13
Over time i have added several python modifications from civfanatics to my own mod.
Everything seems to be ok.

Now, i have checked the HidePythonExceptions in CivilizationIV.ini.
When I start a new game I receive the following Python Exceptions.

I am not sure.

Does this cause any trouble in the game or is this just "a warning"?

 

Attachments

  • PythonExceptions.png
    PythonExceptions.png
    21.9 KB · Views: 592
It's an error in your code.
 
Exception is always an error, not a warning. It means the Python interpreter could not parse or execute your code. The code past the line from the exception report has not been executed, which is probably not what you want.

In your particular case you are using a pPlayer variable and are calling a method on it, but have apparently never stored a (player?) object into that variable.
 
Top Bottom