Skip to content

Commit c797a43

Browse files
committed
adding check for first argument
1 parent 556dddb commit c797a43

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cpylog/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ def get_logger(log=None, level='debug', encoding='utf-8'):
270270
encoding : str; default='utf-8'
271271
the unicode encoding method
272272
"""
273+
assert not isinstance(log, string_types), log
273274
return SimpleLogger(level, encoding=encoding) if log is None else log
274275

275276

0 commit comments

Comments
 (0)