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