Built-in exceptions causing Unresolved Reference errors

I just downloaded PyCharm community edition:

PyCharm Community Edition 2016.1.2
Build #PC-145.844, built on April 8, 2016
JRE: 1.8.0_60-b27 x86
JVM: Java HotSpot(TM) Server VM by Oracle Corporation

I'm getting started with learning the IDE.   I noticed that this simple one-line program:

raise Exception

causes the word "Exception" to be underlined in a red squiggly.  If I hover over it I see the message:

Unresolved reference 'Exception'


But, this is a built-in exception. What should I do so PyCharm will not flag built-in exceptions as unresolved?

 

Also, I tried to copy the text of the error message to paste here, but I cannot  just highlight it and copy the error message.  Is that a limitation?

 

P.S. FWIW There seems to be a problem with Python built-ins in general. e.g.

 

import math

 

triggers an Unresolved Reference error.

Please sign in to leave a comment.