author | Andrey Skvortsov <andrej.skvortzov@gmail.com> |
Wed, 27 Jun 2018 13:57:03 +0300 | |
changeset 2233 | 32445e3c9cfc |
parent 2232 | 3220dd020675 |
child 2234 | 3da336a9664c |
IDEFrame.py | file | annotate | diff | comparison | revisions |
--- a/IDEFrame.py Wed Jun 27 10:58:45 2018 +0300 +++ b/IDEFrame.py Wed Jun 27 13:57:03 2018 +0300 @@ -944,7 +944,11 @@ if not wx.TheClipboard.IsOpened(): dataobj = wx.TextDataObject() if wx.TheClipboard.Open(): - success = wx.TheClipboard.GetData(dataobj) + success = False + try: + success = wx.TheClipboard.GetData(dataobj) + except wx._core.PyAssertionError: + pass wx.TheClipboard.Close() if success: data = dataobj.GetText()