diff --git a/confluent_kafka/schema_registry/error.py b/confluent_kafka/schema_registry/error.py index e4d49b223..77feaeee6 100644 --- a/confluent_kafka/schema_registry/error.py +++ b/confluent_kafka/schema_registry/error.py @@ -15,7 +15,10 @@ # See the License for the specific language governing permissions and # limitations under the License. # -from fastavro.schema import SchemaParseException, UnknownType +try: + from fastavro.schema import SchemaParseException, UnknownType +except ImportError: + pass __all__ = ['SchemaRegistryError', 'SchemaParseException', 'UnknownType']