Skip to content
Open
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
5 changes: 2 additions & 3 deletions .github/workflows/build_image.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
name: DockerBuildAndPush
name: Build Image

on:
push:
branches:
- master
- developement
- ptb-async
- development

env:
IMAGE_NAME: transcriberbot
Expand Down
40 changes: 0 additions & 40 deletions .github/workflows/docker_build_push.yml

This file was deleted.

4 changes: 2 additions & 2 deletions config/wit.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"ar-EG": "xxxxx",
"ca-ES": "xxxxx",
"da-DK": "xxxxx",
"de-DE": "xxxxx",
"de-DE": "1313433163109516",
"en-GB": "xxxxx",
"en-US": "xxxxx",
"es-ES": "xxxxx",
Expand All @@ -22,4 +22,4 @@
"zh-CN": "xxxxx",
"zh-HK": "xxxxx",
"zh-TW": "xxxxx"
}
}
4 changes: 2 additions & 2 deletions run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

docker pull ghcr.io/charslab/transcriberbot:ptb-async
docker pull ghcr.io/charslab/transcriberbot:development
docker run \
-e LC_ALL=C \
-d --restart unless-stopped \
Expand All @@ -12,4 +12,4 @@ docker run \
--cpus=4.0 \
--memory=3000m \
-u "$(id -u):1337" \
ghcr.io/charslab/transcriberbot:ptb-async
ghcr.io/charslab/transcriberbot:development
7 changes: 0 additions & 7 deletions src/database/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,6 @@ def assoc(self):
def __exit__(self, exc_type, exc_value, exc_traceback):
logger.debug("__exit__")
self.__close()

if exc_type:
logger.error("exc_type: {}".format(exc_type))
logger.error("exc_value: {}".format(exc_value))
logger.error("exc_traceback: {}".format(exc_traceback))
logger.error("Caught exception", exc_info=True)

return True

def execute(self, query, *args):
Expand Down