X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/618638415381a084362deb7feeac16cd3b5c009c..015fd9ef4833ec3d8b0043a1c7e448c8be4f734a:/wxPython/src/_core_ex.py diff --git a/wxPython/src/_core_ex.py b/wxPython/src/_core_ex.py index d9d121fa52..ad4f9364ea 100644 --- a/wxPython/src/_core_ex.py +++ b/wxPython/src/_core_ex.py @@ -102,7 +102,7 @@ def CallAfter(callable, *args, **kw): :see: `wx.FutureCall` """ app = wx.GetApp() - assert app, 'No wxApp created yet' + assert app is not None, 'No wx.App created yet' global _wxPyCallAfterId if _wxPyCallAfterId is None: