Skip to content

Commit

Permalink
fix docker
Browse files Browse the repository at this point in the history
  • Loading branch information
buremba committed Aug 5, 2024
1 parent 209c835 commit 95186f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.10-slim-bullseye
FROM python:3.11-slim-bullseye

RUN apt-get update && apt-get -y upgrade \
&& apt-get install gcc -y \
Expand All @@ -19,7 +19,7 @@ COPY . .
# Jinjat itself won't be installed.
RUN poetry install

EXPOSE 8581
EXPOSE 8084
ENV UNIVERSQL_HOST=0.0.0.0

ENTRYPOINT ["poetry", "run", "universql"]
2 changes: 1 addition & 1 deletion universql/warehouse/duckdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def _do_query(self, raw_query: str) -> (str, List, pyarrow.Table):
if local_error_message:
logger.error(f"[{self.token}] {local_error_message}")
if not should_run_locally:
raise SnowflakeError(self.token, f"Can't run the query locally. {local_error_message}")
raise SnowflakeError(self.token, local_error_message)
self.do_snowflake_query(queries, raw_query, start_time, local_error_message)
return self.get_snowflake_result()

Expand Down

0 comments on commit 95186f6

Please sign in to comment.