Skip to content

Commit

Permalink
upgrade to py3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
BennyThink committed Sep 9, 2023
1 parent 961591f commit 3fc341c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM python:3.10-alpine as builder
FROM python:3.11-alpine as builder

RUN apk update && apk add --no-cache tzdata alpine-sdk libffi-dev ca-certificates
ADD requirements.txt /tmp/
RUN pip3 install --user -r /tmp/requirements.txt && rm /tmp/requirements.txt


FROM python:3.10-alpine
FROM python:3.11-alpine
WORKDIR /ytdlbot/ytdlbot
ENV TZ=Europe/Stockholm

Expand Down
1 change: 1 addition & 0 deletions ytdlbot/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ def __init__(self):
host=MYSQL_HOST, user=MYSQL_USER, passwd=MYSQL_PASS, db="ytdl", charset="utf8mb4"
)
except pymysql.err.OperationalError:
logging.warning("Using fake MySQL connection.")
self.con = FakeMySQL()

self.con.ping(reconnect=True)
Expand Down

0 comments on commit 3fc341c

Please sign in to comment.