From 01fb9a2577cf805865747b9dab0a3f74a934ec8e Mon Sep 17 00:00:00 2001 From: Andreas Demmelbauer Date: Thu, 23 Sep 2021 19:06:10 +0200 Subject: [PATCH] change true True --- demotape.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demotape.py b/demotape.py index c9bd707..43aecd4 100644 --- a/demotape.py +++ b/demotape.py @@ -160,7 +160,7 @@ def upload_video(videofile_path): result = os.system('curl -L -u %s -T "%s" "%s"' % (credentials, videofile_path, webdav_url)) if result == 0: # exit code delete_video(videofile_path) - return true + return True except: logging.info('Error while uploading %s to %s' % (file, webdav_url)) @@ -168,7 +168,7 @@ def upload_video(videofile_path): def delete_video(file): try: os.system('rm -rf "%s"' % (file)) - return true + return True except: logging.info('Error while deleting %s' % (file))