diff --git a/plogical/mailUtilities.py b/plogical/mailUtilities.py index fea4870eb..38eb44965 100755 --- a/plogical/mailUtilities.py +++ b/plogical/mailUtilities.py @@ -2537,7 +2537,11 @@ def ResetEmailConfigurations(self): etcResolve = '/etc/resolv.conf' - dataEtcResolv = open(etcResolve, 'r').read() + if os.path.exists(etcResolve): + dataEtcResolv = open(etcResolve, 'r').read() + else: + dataEtcResolv = '' + if len(dataEtcResolv) < 4: writeToFile = open(etcResolve, 'w')