Caused an error in some turtle code by using a bad colour name. This happens in the browser version or in PyCharm when there's no tkinter support in the Python interpreter.
import turtle as t
t.color('unknown colour')
What happened
It raised an error about tkinter:
AttributeError: module 'tkinter' has no attribute 'TclError'
What I wanted to happen
It should complain about the bad colour name.
My environment
Describe the versions of everything you were using:
What I did
Caused an error in some turtle code by using a bad colour name. This happens in the browser version or in PyCharm when there's no tkinter support in the Python interpreter.
What happened
It raised an error about tkinter:
What I wanted to happen
It should complain about the bad colour name.
My environment
Describe the versions of everything you were using: