Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting current note during editing sessions results in AttributeError #98

Closed
glutanimate opened this issue Mar 22, 2019 · 2 comments
Closed
Assignees
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@glutanimate
Copy link
Owner

Deleting the current note will close the current editor window, causing IO's call to refresh the editor to raise an AttributeError:

Debug info: 
Anki 2.1.11 (3cf770c7) Python 3.6.7 Qt 5.12.1 PyQt 5.11.3 
Platform: Mac 10.13.6 
Flags: frz=True ao=True sv=1 
Add-ons possibly involved: Image Occlusion Enhanced Alpha for Anki 21

Caught exception: 
  File "/Users/elliotreece/Library/Application Support/Anki2/addons21/1374772155/add.py", line 340, in onToHtmlCallback 
    self.ed.web.reload() 
<class 'AttributeError'>: 'NoneType' object has no attribute 'reload'

cf.: https://anki.tenderapp.com/discussions/add-ons/30847-image-occlusion-enhanced-editing-bug

@glutanimate glutanimate self-assigned this Mar 22, 2019
@glutanimate glutanimate added the bug Something isn't working label Mar 22, 2019
@zjosua
Copy link
Contributor

zjosua commented Mar 22, 2019

That's a duplicate of #87.

@glutanimate glutanimate added the duplicate This issue or pull request already exists label Mar 22, 2019
@glutanimate
Copy link
Owner Author

Whoops, you're right. Thanks for the original report and PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants