Skip to content

Commit c9855e0

Browse files
committed
#42: fix it in django as well
1 parent 56f539c commit c9855e0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pyexcel_io/database/importers/django.py

+2
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,6 @@ def create_sheet(self, sheet_name):
8282
sheet_writer = DjangoModelWriter(
8383
self.__importer, model,
8484
batch_size=self._keywords.get('batch_size', None))
85+
else:
86+
raise Exception("No django model found!")
8587
return sheet_writer

0 commit comments

Comments
 (0)