diff --git a/builder/master.py b/builder/master.py
index 3a72f96..00a1f2a 100644
--- a/builder/master.py
+++ b/builder/master.py
@@ -1,7 +1,7 @@
 # -*- coding: utf-8 -*-
 """Story manager class.
 """
-from .sbutils import assert_isint, assert_isstr
+from .sbutils import assert_isint, assert_islist, assert_isstr
 from .action import _BaseAction, ActionGroup, TagAction
 from .enums import GroupType, LangType, TagType
 from .subject import Subject, Day, Item, Person, Stage, Word
@@ -119,34 +119,44 @@ class Master(dict):
         return ActionGroup(lang=lang, group_type=GroupType.SCENE, *tmp)
 
     def set_days(self, li: list):
+        assert_islist(li)
+
         for v in li:
             self.append_day(v[0], v[1:])
         return self
 
-    def set_db(self, persons: list, stages: list, days: list, items: list, words: list):
-        self.set_persons(persons)
-        self.set_stages(stages)
-        self.set_days(days)
-        self.set_items(items)
-        self.set_words(words)
+    def set_db(self, persons: list=None, stages: list=None, days: list=None, items: list=None, words: list=None):
+        self.set_persons(persons if persons else [])
+        self.set_stages(stages if stages else [])
+        self.set_days(days if days else [])
+        self.set_items(items if items else [])
+        self.set_words(words if words else [])
         return self
 
     def set_items(self, li: list):
+        assert_islist(li)
+
         for v in li:
             self.append_item(v[0], v[1:])
         return self
 
     def set_persons(self, li: list):
+        assert_islist(li)
+
         for v in li:
             self.append_person(v[0], v[1:])
         return self
 
     def set_stages(self, li: list):
+        assert_islist(li)
+
         for v in li:
             self.append_stage(v[0], v[1:])
         return self
 
     def set_words(self, li: list):
+        assert_islist(li)
+
         for v in li:
             self.append_word(v[0], v[1:])
         return self
diff --git a/builder/sbutils.py b/builder/sbutils.py
index c5e1219..d05a510 100644
--- a/builder/sbutils.py
+++ b/builder/sbutils.py
@@ -37,6 +37,12 @@ def assert_isint(ins) -> bool:
 
 
 def assert_islist(ins) -> bool:
+    assert isinstance(ins, list) or isinstance(ins, tuple), _ASSERT_MSG.format(_instance_name_if(ins), "list or tuple")
+
+    return True
+
+
+def assert_islist_strict(ins) -> bool:
     assert isinstance(ins, list), _ASSERT_MSG.format(_instance_name_if(ins), "list")
 
     return True

Need to fix: nothing error in storyDB
空の要素で失敗
===

**Description**
StoryDBの引数で要素が空のタプルが含まれている時にerror発生。審査して作らないように対処。

diff --git a/tests/test_master.py b/tests/test_master.py
index 5691f7b..86e4e64 100644
--- a/tests/test_master.py
+++ b/tests/test_master.py
@@ -289,6 +289,26 @@ class MasterTest(unittest.TestCase):
         for k, exp in expected:
             self.assertIsInstance(ma[k], exp)
 
+    def test_set_db_when_lacked(self):
+        data_p = (("p1", "Taro", 17, "male", "student"),)
+        data_s = (("s1", "stage1"),)
+        data_d = (("d1", "day1"),)
+        data_i = (("i1", "item1"),)
+        data_w = (("w1", "word1"),)
+        data = [
+                (data_p, data_s, data_d, data_i, data_w),
+                (data_p, data_s, data_d, data_i, None),
+                (data_p, data_s, data_d, None, None),
+                (data_p, data_s, None, None, None),
+                (data_p, None, None, None, None),
+                (None, None, None, None, None),
+                ]
+
+        for p, s, d, i, w in data:
+            with self.subTest(p=p, s=s, d=d, i=i, w=w):
+                ma = Master('test')
+                self.assertIsInstance(ma.set_db(p, s, d, i, w), Master)
+
     def test_set_items(self):
         data = (
                 ("t1", "item1"),

pip install -e .
parse_log_pytest
pytest
pytest coveralls
apt-get update apt-get install -y gcc
3.6
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work
certifi==2021.5.30
charset-normalizer==2.0.12
coverage==6.2
coveralls==3.3.1
docopt==0.6.2
idna==3.10
importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1631916693255/work
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
more-itertools @ file:///tmp/build/80754af9/more-itertools_1637733554872/work
packaging @ file:///tmp/build/80754af9/packaging_1637314298585/work
pluggy @ file:///tmp/build/80754af9/pluggy_1615976315926/work
py @ file:///opt/conda/conda-bld/py_1644396412707/work
pyparsing @ file:///tmp/build/80754af9/pyparsing_1635766073266/work
pytest==6.2.4
requests==2.27.1
-e git+https://github.com/nagisc007/storybuilder.git@b0219f7a7883f24de99ee8269d1e60b83130deed#egg=StoryBuilder
toml @ file:///tmp/build/80754af9/toml_1616166611790/work
typing_extensions @ file:///opt/conda/conda-bld/typing_extensions_1647553014482/work
urllib3==1.26.20
zipp @ file:///tmp/build/80754af9/zipp_1633618647012/work

name: storybuilder
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - attrs=21.4.0=pyhd3eb1b0_0
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - importlib-metadata=4.8.1=py36h06a4308_0
  - importlib_metadata=4.8.1=hd3eb1b0_0
  - iniconfig=1.1.1=pyhd3eb1b0_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - more-itertools=8.12.0=pyhd3eb1b0_0
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - packaging=21.3=pyhd3eb1b0_0
  - pip=21.2.2=py36h06a4308_0
  - pluggy=0.13.1=py36h06a4308_0
  - py=1.11.0=pyhd3eb1b0_0
  - pyparsing=3.0.4=pyhd3eb1b0_0
  - pytest=6.2.4=py36h06a4308_2
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - toml=0.10.2=pyhd3eb1b0_0
  - typing_extensions=4.1.1=pyh06a4308_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zipp=3.6.0=pyhd3eb1b0_0
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - charset-normalizer==2.0.12
      - coverage==6.2
      - coveralls==3.3.1
      - docopt==0.6.2
      - idna==3.10
      - requests==2.27.1
      - urllib3==1.26.20
prefix: /opt/conda/envs/storybuilder

tests/test_master.py::MasterTest::test_set_db_when_lacked
tests/test_master.py::MasterTest::test_append_day tests/test_master.py::MasterTest::test_append_item tests/test_master.py::MasterTest::test_append_person tests/test_master.py::MasterTest::test_append_stage tests/test_master.py::MasterTest::test_append_word tests/test_master.py::MasterTest::test_attributes tests/test_master.py::MasterTest::test_br tests/test_master.py::MasterTest::test_break_symbol tests/test_master.py::MasterTest::test_combine tests/test_master.py::MasterTest::test_comment tests/test_master.py::MasterTest::test_hr tests/test_master.py::MasterTest::test_scene tests/test_master.py::MasterTest::test_set_days tests/test_master.py::MasterTest::test_set_db tests/test_master.py::MasterTest::test_set_items tests/test_master.py::MasterTest::test_set_persons tests/test_master.py::MasterTest::test_set_stages tests/test_master.py::MasterTest::test_set_words tests/test_master.py::MasterTest::test_story tests/test_master.py::MasterTest::test_title
builder/sbutils.py builder/master.py
builder/sbutils.py builder/master.py