You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.
Describe the bug
A clear and concise description of what the bug is.
The document.py file has a function named "__unset_gj_flag_sub_field"
it sometimes ( not all times ) raises error even the same query usually works but very sometimes.
the exception log is as below.
File "/home/yongwoo/.conda/envs/pingme/lib/python3.6/site-packages/mongoengine_goodjson/document.py", line 155, in unset_flag
cur_depth_attr = getattr(fld, "$$cur_depth$$")
AttributeError: 'StringField' object has no attribute '$$cur_depth$$'
So here is my fixed code and it works fine again but I never understand how come it happens.
because you declared setattr(fld, "$$cur_depth$$", depth_lv - 1) so that getattr(fld, "$$cur_depth$$") must always have $$cur_depth$$ property but as you see the error log above it raises..
To Reproduce
Steps to reproduce the behavior:
Go to '...'
Click on '....'
Scroll down to '....'
See error
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]
Smartphone (please complete the following information):
Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
A clear and concise description of what the bug is.
The document.py file has a function named "__unset_gj_flag_sub_field"
it sometimes ( not all times ) raises error even the same query usually works but very sometimes.
the exception log is as below.
So here is my fixed code and it works fine again but I never understand how come it happens.
because you declared setattr(fld, "$$cur_depth$$", depth_lv - 1) so that getattr(fld, "$$cur_depth$$") must always have$$cur_depth$$ property but as you see the error log above it raises..
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: