From bb5a339e814876b5c404a858f6a45ebf9c5286ca Mon Sep 17 00:00:00 2001 From: katharina Date: Sat, 4 Dec 2021 18:49:15 +0100 Subject: [PATCH] #1: Typecast to bool --- BringCookies/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BringCookies/main.py b/BringCookies/main.py index aaca483..43532d9 100644 --- a/BringCookies/main.py +++ b/BringCookies/main.py @@ -15,7 +15,7 @@ def main(): copy(nextcloudInstance, user, destinationPath, filecontent, password, protocol, verifyTls) def copy(nc, user, pathtofile, filecontent, password, protocol, verifyTls): - journey = requests.put(protocol + "://" + nc + "/remote.php/dav/files/" + user + "/" + pathtofile, data=filecontent, auth=(user, password), verify=distutils.util.strtobool(verifyTls)) + journey = requests.put(protocol + "://" + nc + "/remote.php/dav/files/" + user + "/" + pathtofile, data=filecontent, auth=(user, password), verify=bool(distutils.util.strtobool(verifyTls))) if __name__ == "__main__": main()