Explorar el Código

small fix in the logger init of the finetune parser

Dimitri Korsch hace 4 años
padre
commit
be76b189e0
Se han modificado 1 ficheros con 1 adiciones y 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