[preview] 'NoneType' object has no attribute 'set_cursor'

Versions

  • OS: MacOS
  • Gajim Version: 1.1.92
  • UrlImagePreview: 2.3.37

Traceback

gajim.p.preview  Exception while loading aesgcm://imageurl: 'NoneType' object has no attribute 'set_cursor'
Traceback (most recent call last):
  File "/Users/x/.local/share/gajim/plugins/url_image_preview/url_image_preview.py", line 494, in add_to_textview
    image.get_window().set_cursor(get_cursor('pointer'))
AttributeError: 'NoneType' object has no attribute 'set_cursor' 

I suspect the window got closed before the preview was ready.