File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -42,8 +42,6 @@ class MerginProject:
4242 """
4343
4444 def __init__ (self , directory ):
45- if not isinstance (directory , str ):
46- raise ClientError ("'directory' must be a str" )
4745 self .dir = os .path .abspath (directory )
4846 if not os .path .exists (self .dir ):
4947 raise InvalidProject ("Project directory does not exist" )
@@ -88,7 +86,7 @@ def _logger_callback(level, text_bytes):
8886
8987 def setup_logging (self , logger_name ):
9088 """Setup logging into project directory's .mergin/client-log.txt file."""
91- self .log = logging .getLogger ("mergin.project." + logger_name )
89+ self .log = logging .getLogger ("mergin.project." + str ( logger_name ) )
9290 self .log .setLevel (logging .DEBUG ) # log everything (it would otherwise log just warnings+errors)
9391 if not self .log .handlers :
9492 # we only need to set the handler once
You can’t perform that action at this time.
0 commit comments