asweigart / pyautogui

A cross-platform GUI automation Python module for human beings. Used to programmatically control the mouse & keyboard.
BSD 3-Clause "New" or "Revised" License
10.22k stars 1.24k forks source link

Triggers a traceback for failsafe #765

Open CodeBuzz-ML opened 1 year ago

CodeBuzz-ML commented 1 year ago

TypeError Traceback (most recent call last) Cell In[30], line 2 1 pyautogui. FAILSAFE = False ----> 2 pyautogui.moveTo(1,1) 3 pyautogui.PAUSE = 2 4 pyautogui.moveTo(1365,767)

File ~\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\pyautogui__init__.py:597, in _genericPyAutoGUIChecks..wrapper(*args, kwargs) 595 @functools.wraps(wrappedFunction) 596 def wrapper(*args, *kwargs): --> 597 failSafeCheck() 598 returnVal = wrappedFunction(args, kwargs) 599 _handlePause(kwargs.get("_pause", True))

TypeError: 'bool' object is not callable