Skip to content

Commit

Permalink
Add assert error message
Browse files Browse the repository at this point in the history
  • Loading branch information
yutaro-oguri committed Oct 19, 2023
1 parent 3b89f36 commit e378124
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gokart/file_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ def load(self, file):
return config

def dump(self, obj, file):
assert isinstance(obj, configparser.ConfigParser)
assert isinstance(obj, configparser.ConfigParser), \
f'requires configparser.ConfigParser, but {type(obj)} is passed.'
obj.write(file)


Expand Down

0 comments on commit e378124

Please sign in to comment.