Project

General

Profile

Bug #71745

normalize_geolocation, InvalidOperation: [<class 'decimal.ConversionSyntax'>]

Added by Sentry Io 2 months ago. Updated 2 months ago.

Status:
Fermé
Priority:
Normal
Target version:
-
Start date:
26 November 2022
Due date:
% Done:

0%

Estimated time:
Patch proposed:
Yes
Planning:
No

Description

https://sentry.entrouvert.org/entrouvert/publik/issues/97506/

InvalidOperation: [<class 'decimal.ConversionSyntax'>]
(11 additional frame(s) were not displayed)
...
  File "wcs/formdef.py", line 896, in add_fields_to_form
    transient_formdata.data.update(self.get_field_data(field, widget))
  File "wcs/formdef.py", line 1028, in get_field_data
    d[field.id] = widget.parse()
  File "quixote/form/widget.py", line 135, in parse
    self._parse(request)
  File "wcs/qommon/form.py", line 3257, in _parse
    lat_lon = misc.normalize_geolocation({'lat': lat, 'lon': lon})
  File "wcs/qommon/misc.py", line 788, in normalize_geolocation
    lat = decimal.Decimal(lat_lon['lat'])

Files

Associated revisions

Revision 26ee88be (diff)
Added by Lauréline Guérin 2 months ago

misc: fix normalize_geolocation with non decimal values (#71745)

History

#1

Updated by Lauréline Guérin 2 months ago

  • Project changed from Suivi des traces to w.c.s.
  • Subject changed from InvalidOperation: [<class 'decimal.ConversionSyntax'>] to normalize_geolocation, InvalidOperation: [<class 'decimal.ConversionSyntax'>]
  • Assignee set to Lauréline Guérin
#2

Updated by Lauréline Guérin 2 months ago

#3

Updated by Frédéric Péters 2 months ago

  • Status changed from Solution proposée to Solution validée
#4

Updated by Lauréline Guérin 2 months ago

  • Status changed from Solution validée to Résolu (à déployer)
commit 26ee88beddbefa637215e74ecf25c5e0296f5b97
Author: Lauréline Guérin <zebuline@entrouvert.com>
Date:   Sat Nov 26 09:32:46 2022 +0100

    misc: fix normalize_geolocation with non decimal values (#71745)
#5

Updated by Transition automatique 2 months ago

  • Status changed from Résolu (à déployer) to Solution déployée
#6

Updated by Transition automatique 3 days ago

Automatic expiration

Also available in: Atom PDF