lib/taskjuggler/apps/Tj3SsReceiver.rb in taskjuggler-3.1.0 vs lib/taskjuggler/apps/Tj3SsReceiver.rb in taskjuggler-3.2.0
- old
+ new
@@ -36,22 +36,19 @@
EOT
end
end
def appMain(argv)
- begin
- ts = TaskJuggler::StatusSheetReceiver.new('tj3ss_receiver')
- @rc.configure(ts, 'global')
- @rc.configure(ts, 'statussheets')
- @rc.configure(ts, 'statussheets.receiver')
- ts.workingDir = @workingDir if @workingDir
- ts.dryRun = @dryRun
+ ts = TaskJuggler::StatusSheetReceiver.new('tj3ss_receiver')
+ @rc.configure(ts, 'global')
+ @rc.configure(ts, 'statussheets')
+ @rc.configure(ts, 'statussheets.receiver')
+ ts.workingDir = @workingDir if @workingDir
+ ts.dryRun = @dryRun
- ts.processEmail
- return 0
- rescue TjRuntimeError
- return 1
- end
+ ts.processEmail
+
+ 0
end
end
end