Skip to content

Commit 1fb408e

Browse files
committed
fix(general): Just delete the fp after __version__ was set
1 parent 8045842 commit 1fb408e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

discord/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@
1616
__license__ = 'MIT'
1717
__copyright__ = 'Copyright 2015-2021 Rapptz & 2021-present mccoderpy'
1818
__version__ = '1.8a'
19+
1920
try:
2021
with open('./version.txt') as fp:
2122
__version__ = fp.read()
23+
del fp
2224
except Exception:
2325
pass
2426

0 commit comments

Comments
 (0)