|
@@ -348,8 +348,9 @@ class Article(Item):
|
|
|
):
|
|
|
super(Article, self).__init__(**kwargs)
|
|
|
assert not self.name is None
|
|
|
- assert type(quantity) is int
|
|
|
- self.quantity = quantity
|
|
|
+ if quantity is not None:
|
|
|
+ assert type(quantity) is int
|
|
|
+ self.quantity = quantity
|
|
|
if authors is not None:
|
|
|
assert type(authors) is list
|
|
|
self.authors = authors
|