You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by di...@apache.org on 2018/11/19 17:59:38 UTC

[airavata] branch master updated: Catching all exceptions in PBS parser

This is an automated email from the ASF dual-hosted git repository.

dimuthuupe pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata.git


The following commit(s) were added to refs/heads/master by this push:
     new 76e2eba  Catching all exceptions in PBS parser
76e2eba is described below

commit 76e2ebaff14f2ba3ac7916ea24c34030c50de471
Author: Dimuthu Wannipurage <di...@datasprouts.com>
AuthorDate: Mon Nov 19 12:59:30 2018 -0500

    Catching all exceptions in PBS parser
---
 .../org/apache/airavata/gfac/monitor/email/parser/PBSEmailParser.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/monitor/email/parser/PBSEmailParser.java b/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/monitor/email/parser/PBSEmailParser.java
index 486a7d5..7676b82 100644
--- a/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/monitor/email/parser/PBSEmailParser.java
+++ b/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/monitor/email/parser/PBSEmailParser.java
@@ -51,7 +51,7 @@ public class PBSEmailParser implements EmailParser {
         try {
             String content = ((String) message.getContent());
             parseContent(content, jobStatusResult);
-        } catch (IOException e) {
+        } catch (Exception e) {
             throw new AiravataException("[EJM]: Error while reading content of the email message");
         }
         return jobStatusResult;