Skip to content
Merged
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
Fixed NoneType Error
None was replaced by '' in line 54 to comply with os.environ.get method
  • Loading branch information
trotskylenin authored Mar 29, 2022
commit dd8a036600ef33d594faa590f4b04954454cea47
2 changes: 1 addition & 1 deletion transmission-trackers.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
if getcwd() != '/docker/transmission/transmission-trackers':
from os import environ as env, path, mkdir
try:
cache_file = path.join(env.get('TEMP',env.get('TMP',None)) ,'.cache/trackers.txt')
cache_file = path.join(env.get('TEMP',env.get('TMP','')) ,'.cache/trackers.txt')
if not path.isdir(path.dirname(cache_file)):
mkdir(path.dirname(cache_file))
import toml
Expand Down