Skip to content

Commit

Permalink
Add Github Issue Creator Task
Browse files Browse the repository at this point in the history
  • Loading branch information
abs51295 committed Mar 22, 2018
1 parent 53d385f commit 50ecc96
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM registry.centos.org/centos/centos:7

ENV F8A_WORKER_VERSION=561636c
ENV F8A_WORKER_VERSION=69addae

RUN yum install -y epel-release &&\
yum install -y gcc git python34-pip python34-requests httpd httpd-devel python34-devel &&\
Expand All @@ -12,7 +12,7 @@ RUN pip3 install -r requirements.txt && rm requirements.txt

COPY ./src /src

RUN pip3 install git+https://github.com/fabric8-analytics/fabric8-analytics-worker.git@${F8A_WORKER_VERSION}
RUN pip3 install git+https://github.com/abs51295/fabric8-analytics-worker.git@${F8A_WORKER_VERSION}

ADD scripts/entrypoint.sh /bin/entrypoint.sh

Expand Down
5 changes: 3 additions & 2 deletions src/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,10 @@ def store_record(cls, data):
)
session.add(entry)
session.commit()
except SQLAlchemyError:
except SQLAlchemyError as e:
session.rollback()
raise Exception("Error in storing the record in current session")
raise Exception("Error in storing the record in current session due to {}"
.format(e))
except Exception as e:
raise Exception("Error in storing the record due to {}".format(e))
return cls.get_info(data["git-url"])
Expand Down

0 comments on commit 50ecc96

Please sign in to comment.