X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=ud-replicated;h=dd58a24ea5eeb803951635b19cd08940a34939fc;hb=b22af6dffb85542441935a2c117105b38f0b53b5;hp=7aa8b893e144c769d3ebabc4186dde4b897ca446;hpb=156b158c5cab76917860e0ec362dab7678c1347a;p=mirror%2Fuserdir-ldap.git diff --git a/ud-replicated b/ud-replicated index 7aa8b89..dd58a24 100755 --- a/ud-replicated +++ b/ud-replicated @@ -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():