Explorar o código

small fix in the logger init of the finetune parser

Dimitri Korsch %!s(int64=4) %!d(string=hai) anos
pai
achega
be76b189e0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      cvfinetune/parser/base.py

+ 1 - 1
cvfinetune/parser/base.py

@@ -28,7 +28,7 @@ class FineTuneParser(GPUParser):
 		handler0.addFilter(HostnameFilter())
 		fmt0 = "<{hostname:^10s}>: " + fmt
 
-		if self._args.logfile is None:
+		if self._args.logfile in [ None, "" ] :
 			filename = f"{platform.node()}.log"
 		else:
 			filename = self._args.logfile