Skip to content

Commit

Permalink
feat: flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
gforcada committed Apr 23, 2023
1 parent a76152d commit c1523c7
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion plone/registry/field.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from zope.schema.interfaces import IContextSourceBinder
from zope.schema.vocabulary import SimpleVocabulary

import sys
import zope.schema
import zope.schema._field

Expand Down
3 changes: 0 additions & 3 deletions plone/registry/recordsproxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,11 @@
from zope.schema.interfaces import RequiredMissing

import re
import sys


try:
from UserDict import DictMixin
from UserDict import UserDict
except ImportError:
from collections import UserDict
from collections.abc import MutableMapping as DictMixin

_marker = object()
Expand Down
3 changes: 1 addition & 2 deletions plone/registry/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
from zope.schema import getFieldsInOrder

import re
import sys
import warnings


Expand Down Expand Up @@ -109,7 +108,7 @@ def registerInterface(self, interface, omit=(), prefix=None):
bound_field = persistent_field.bind(existing_record)
try:
bound_field.validate(value)
except:
except Exception:
value = persistent_field.default

self.records[record_name] = Record(persistent_field, value, _validate=False)
Expand Down

0 comments on commit c1523c7

Please sign in to comment.