lib/taskjuggler/apps/Tj3SsSender.rb in taskjuggler-3.1.0 vs lib/taskjuggler/apps/Tj3SsSender.rb in taskjuggler-3.2.0
- old
+ new
@@ -66,26 +66,23 @@
optsEndDate
end
end
def appMain(argv)
- begin
- ts = StatusSheetSender.new('tj3ss_sender')
- @rc.configure(ts, 'global')
- @rc.configure(ts, 'statussheets')
- @rc.configure(ts, 'statussheets.sender')
- ts.workingDir = @workingDir if @workingDir
- ts.dryRun = @dryRun
- ts.force = @force
- ts.intervalDuration = @intervalDuration if @intervalDuration
- ts.date = @date if @date
- ts.hideResource = @hideResource if @hideResource
+ ts = StatusSheetSender.new('tj3ss_sender')
+ @rc.configure(ts, 'global')
+ @rc.configure(ts, 'statussheets')
+ @rc.configure(ts, 'statussheets.sender')
+ ts.workingDir = @workingDir if @workingDir
+ ts.dryRun = @dryRun
+ ts.force = @force
+ ts.intervalDuration = @intervalDuration if @intervalDuration
+ ts.date = @date if @date
+ ts.hideResource = @hideResource if @hideResource
- ts.sendTemplates(@resourceList)
- return 0
- rescue TjRuntimeError
- return 1
- end
+ ts.sendTemplates(@resourceList)
+
+ 0
end
end
end