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

refine sentry ignore #884

Merged
merged 4 commits into from
Oct 17, 2022
Merged

refine sentry ignore #884

merged 4 commits into from
Oct 17, 2022

Conversation

pindge
Copy link
Contributor

@pindge pindge commented Oct 17, 2022

Fixes: #869

captured error message: "'LGEOS380' object has no attribute 'GEOSGeom_destroy'"

  • add SENTRY_DSN to .env

  • fix the test case to reflect the correct reported error

where 'event' = <function before_send at 0x7f16f99064d0>('event', {'exc_info': (<class 'AttributeError'>, AttributeError("type object 'LGEOS380' has no attribute 'GEOSGeom_destroy'"), <traceback object at 0x7f16ec3cff40>)})
  • simplify the condition to allow all the GEOSGEOM_destroy
    image

https://github.com/shapely/shapely/blob/f02c4c72d29862ade0708ce777d0316fbba44fef/shapely/geos.py#L633
https://github.com/shapely/shapely/blob/f02c4c72d29862ade0708ce777d0316fbba44fef/shapely/geos.py#L766
https://github.com/shapely/shapely/blob/f02c4c72d29862ade0708ce777d0316fbba44fef/shapely/geos.py#L778
https://github.com/shapely/shapely/blob/f02c4c72d29862ade0708ce777d0316fbba44fef/shapely/geos.py#L790
https://github.com/shapely/shapely/blob/f02c4c72d29862ade0708ce777d0316fbba44fef/shapely/geos.py#L801

@codecov
Copy link

codecov bot commented Oct 17, 2022

Codecov Report

Merging #884 (e077174) into master (327cdc3) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #884   +/-   ##
=======================================
  Coverage   93.97%   93.97%           
=======================================
  Files          41       41           
  Lines        6275     6278    +3     
=======================================
+ Hits         5897     5900    +3     
  Misses        378      378           
Impacted Files Coverage Δ
datacube_ows/startup_utils.py 92.85% <100.00%> (ø)
datacube_ows/data.py 83.76% <0.00%> (ø)
datacube_ows/ows_configuration.py 95.96% <0.00%> (+0.01%) ⬆️

@pindge pindge marked this pull request as ready for review October 17, 2022 04:48
.env_ows_root Outdated
DATACUBE_OWS_CFG=ows_refactored.ows_root_cfg.ows_cfg
SENTRY_DSN=https://[email protected]/2
Copy link

@jmettes jmettes Oct 17, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where does https://[email protected]/2 get set up?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a placeholder, i've decided to set it empty

@pindge pindge requested a review from jmettes October 17, 2022 05:17
class LGEOS380:
x = 5
class LGEOS380():
def __init__(self, a=5):
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you just want an empty class, you don't need an __init__. Could just do something like

class LGEOS380:
  pass

@pindge pindge merged commit 863802c into master Oct 17, 2022
@delete-merged-branch delete-merged-branch bot deleted the refine-sentry branch October 17, 2022 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

need to setup a test case that can trigger 'LGEOS380' object has no attribute 'GEOSGeom_destroy'
2 participants