ud-mailgate: remove exception for münchen.debian.net
[mirror/userdir-ldap.git] / ud-replicated
index 7aa8b89..dd58a24 100755 (executable)
@@ -104,7 +104,8 @@ def do_replicate(message):
         else:
             LOG.debug('%s finished with ret: 0' % ' '.join(command))
         finally:
-            os.environ['TERM'] = old_term
+            if old_term is not None:
+                os.environ['TERM'] = old_term
     last_run = last_update
 
 def main():