Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1910 from open-apparel-registry/ogr/bugfix/jcw/em…
Browse files Browse the repository at this point in the history
…bed-array-parsing

Avoid exception when parsing arrays in raw data
  • Loading branch information
jwalgran committed Jun 16, 2022
2 parents e0e1aec + fd4d145 commit 85aeb31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- API documentation updates [#1844](https://github.com/open-apparel-registry/open-apparel-registry/pull/1844)
- Return sector in Facility detail response [#1884](https://github.com/open-apparel-registry/open-apparel-registry/pull/1884)
- Updated logo and colors on top banner, map and search button [#1900](https://github.com/open-apparel-registry/open-apparel-registry/pull/1900)
- Avoid exception when parsing arrays in raw data [#1910](https://github.com/open-apparel-registry/open-apparel-registry/pull/1910)

### Deprecated

Expand Down
2 changes: 1 addition & 1 deletion src/django/api/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def get_csv_values(csv_data):
def try_parse_int_from_float(value):
try:
return str(int(float(value)))
except ValueError:
except (ValueError, TypeError):
return value


Expand Down

0 comments on commit 85aeb31

Please sign in to comment.