Use empty string rather than none

main
Bob Mottram 2021-02-28 18:14:13 +00:00
parent 5f0e3c3d83
commit a71c548a7f
1 changed files with 4 additions and 1 deletions

View File

@ -859,14 +859,17 @@ configOnionDomain = getConfigParam(baseDir, 'onion')
if configOnionDomain: if configOnionDomain:
onionDomain = configOnionDomain onionDomain = configOnionDomain
else: else:
onionDomain = None # Note: this should not be None
onionDomain = ''
# get i2p domain name from configuration # get i2p domain name from configuration
configi2pDomain = getConfigParam(baseDir, 'i2pDomain') configi2pDomain = getConfigParam(baseDir, 'i2pDomain')
if configi2pDomain: if configi2pDomain:
i2pDomain = configi2pDomain i2pDomain = configi2pDomain
else: else:
# Note: this should not be None
i2pDomain = None i2pDomain = None
onionDomain = ''
# get port number from configuration # get port number from configuration
configPort = getConfigParam(baseDir, 'port') configPort = getConfigParam(baseDir, 'port')