detect empty remoteURL and trigger Offline mode

This commit is contained in:
Stefan Schmidt-Bilkenroth 2021-04-06 21:03:01 +02:00
parent c970b36006
commit 2f727dbce4

View file

@ -73,7 +73,9 @@ def readConfig(configFile=None):
#try to read the remote URL, if not given, work offline
try:
remoteURL = config.get('pfad', 'remote')
remoteURL = config.get('pfad', 'remote').strip()
if len(remoteURL) == 0:
remoteURL = None
except:
remoteURL = None