Update dirac-glast-pipeline-get-logfile.py

little fix. in case of error