X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=dak%2Fqueue_report.py;h=422672b7e99be6c9fa466a1fd7b22336ba4132b9;hb=fa727dcf0058058565278421d16ea75c156e7fa3;hp=a7086d897a68c54ffc4232bc429c616eb72465e6;hpb=03aab09c4c5fa5be1efe492a7ec1b2bcc4c9dc41;p=dak.git diff --git a/dak/queue_report.py b/dak/queue_report.py index a7086d89..422672b7 100755 --- a/dak/queue_report.py +++ b/dak/queue_report.py @@ -654,7 +654,10 @@ def main(): f = None if Cnf.has_key("Queue-Report::Options::822"): # Open the report file - f = open(Cnf["Queue-Report::ReportLocations::822Location"], "w") + f = sys.stdout + filename822 = Cnf.get("Queue-Report::ReportLocations::822Location") + if filename822: + f = open(filename822, "w") session = DBConn().session()