Skip to content

Commit 07336a7

Browse files
committed
fix: lint
1 parent 97918fa commit 07336a7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

selfservice/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
app.config.from_pyfile(os.path.join(os.getcwd(), "config.env.py"))
3535

3636
# Get Git Revision
37-
version = open("rev", "r").read().rstrip()
37+
with open("rev", mode="r", encoding="utf-8") as file:
38+
version = file.read().rstrip()
3839

3940
# Setup Sentry tracking
4041
sentry_sdk.init(

0 commit comments

Comments
 (0)