Add delete file on successful submit

This commit is contained in:
nolash 2021-06-02 21:57:28 +02:00
parent ee5981e53a
commit 4eb19ff1b7
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
1 changed files with 1 additions and 0 deletions

View File

@ -63,6 +63,7 @@ def main():
if int.from_bytes(r, byteorder='big'):
sys.stderr.write('error {}'.format(r))
sys.exit(1)
os.unlink(fpath)
logg.debug('submitted {} {} status {}'.format(fpath, tx, r))
if __name__ == '__main__':