Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Add Github Issue Creator Task #28

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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