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
AttributeError: 'NoneType' object has no attribute 'key' #817
Comments
AndreiB97
added a commit
to AndreiB97/watchdog
that referenced
this issue
Jul 18, 2021
This fixes an issue with `SkipRepeatsQueue._put()` which causes it to raise an `AttributeError` on the first put. This is done by adding a check to test if `_last_item` is set to `None`, which is the value set by `__init__()`
AndreiB97
added a commit
to AndreiB97/watchdog
that referenced
this issue
Jul 18, 2021
This fixes an issue with SkipRepeatsQueue._put() which causes it to raise an AttributeError on the first put. This is done by adding a check to test if _last_item is set to None, which is the value set by __init__()
AndreiB97
added a commit
to AndreiB97/watchdog
that referenced
this issue
Jul 18, 2021
This fixes an issue with SkipRepeatsQueue._put() which causes it to raise an AttributeError on the first put. This is done by adding a check to test if _last_item is set to None, which is the value set by __init__()
BoboTiG
added a commit
that referenced
this issue
Jul 28, 2021
* Fix SkipRepeatsQueue._put() raises AttributeError (#817) This fixes an issue with SkipRepeatsQueue._put() which causes it to raise an AttributeError on the first put. This is done by adding a check to test if _last_item is set to None, which is the value set by __init__() * Update changelog.rst Co-authored-by: Mickaël Schoentgen <contact@tiger-222.fr>
Closed with #818. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The first time
EventQueue.put()
is executed it throws the following exception:The problem seems to be this line: https://github.com/gorakhargosh/watchdog/blob/master/src/watchdog/utils/bricks.py#L90
In
__init__
_last_item
is set to None andFileSystemEvent.__ne__()
uses thekey
property without checking the type of the other event.This can be fixed by changing the line from:
to:
I'm currently running version
2.1.3
on Windows 10:The text was updated successfully, but these errors were encountered: