Skip to content

Commit

Permalink
Fix error in get_component_object => NameError: name 'logging is not …
Browse files Browse the repository at this point in the history
…defined'

Accidentally removed the `import logging` in previous version 1.0.0
  • Loading branch information
bobslee committed Jul 18, 2023
1 parent c498982 commit 33a22ba
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 1.0.1

Fix error in `get_component_object` (`builder.py`) => `NameError: name 'logging is not defined'`\
Accidentally removed the `import logging` in previous version 1.0.0

## 1.0.0

Implement component (object) path properties in a builder (object) context.
Expand Down
4 changes: 3 additions & 1 deletion formiodata/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@
# See LICENSE file for full licensing details.

import json
import logging

from collections import OrderedDict
from copy import deepcopy

from formiodata import components

logger = logging.getLogger(__name__)


class Builder:

Expand Down Expand Up @@ -91,7 +94,6 @@ def get_component_object(self, component):
logging.warning(msg % component)
return False


@property
def form(self):
"""
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "formio-data"
version = "1.0.0"
version = "1.0.1"
homepage = "https://github.com/novacode-nl/python-formio-data"
description = "formio.js JSON-data API"
readme = "README.md"
Expand Down

0 comments on commit 33a22ba

Please sign in to comment.