Skip to content

Commit dd8a036

Browse files
authored
Fixed NoneType Error
None was replaced by '' in line 54 to comply with os.environ.get method
1 parent e6cb5f8 commit dd8a036

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

transmission-trackers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
if getcwd() != '/docker/transmission/transmission-trackers':
5252
from os import environ as env, path, mkdir
5353
try:
54-
cache_file = path.join(env.get('TEMP',env.get('TMP',None)) ,'.cache/trackers.txt')
54+
cache_file = path.join(env.get('TEMP',env.get('TMP','')) ,'.cache/trackers.txt')
5555
if not path.isdir(path.dirname(cache_file)):
5656
mkdir(path.dirname(cache_file))
5757
import toml

0 commit comments

Comments
 (0)