Tarskin / HappyTools

A tool for the (high-throughput) processing of HPLC data.
Apache License 2.0
34 stars 16 forks source link

Batch processing crashes when not creating a pdf figure. #9

Closed Tarskin closed 7 years ago

Tarskin commented 7 years ago

The create figure setting opens a pdf object, when this setting is false the program will still try to close the non existing pdf object and thus crash.

Tarskin commented 7 years ago

The bug was fixed by checking if the user wanted a pdf report or not by doing:

if functions.createFigure == "True":
    pdf.close()