We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd6b0d0 commit 17f44e9Copy full SHA for 17f44e9
jsonsubschema/_utils.py
@@ -189,7 +189,10 @@ def regex_isSubset(s1, s2):
189
s1.cardinality()
190
s2.cardinality()
191
return set(s1.strings()).issubset(s2.strings())
192
- except OverflowError:
+ except (OverflowError, Exception):
193
+ # catching a general exception thrown from greenery
194
+ # see https://github.com/qntm/greenery/blob/master/greenery/lego.py
195
+ # ... raise Exception("Please choose an 'otherchar'")
196
return s1.equivalent(s2) or (s1 & s2.everythingbut()).empty()
197
elif s1:
198
return True
0 commit comments