Return none instead of false
This commit is contained in:
parent
9d7f3127df
commit
1db8d586f6
1 changed files with 2 additions and 2 deletions
|
@ -457,7 +457,7 @@ class NextcloudHandler:
|
||||||
{"action": "get", "status_code": r.status_code, "size": len(r.content)}
|
{"action": "get", "status_code": r.status_code, "size": len(r.content)}
|
||||||
)
|
)
|
||||||
if r.headers['Content-Type'] == 'text/html; charset=UTF-8':
|
if r.headers['Content-Type'] == 'text/html; charset=UTF-8':
|
||||||
return False
|
return None
|
||||||
return r.json()
|
return r.json()
|
||||||
if r.status_code == 404:
|
if r.status_code == 404:
|
||||||
self.error(
|
self.error(
|
||||||
|
@ -775,7 +775,7 @@ class NextcloudHandler:
|
||||||
"folder_name": name
|
"folder_name": name
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
return False
|
return None
|
||||||
|
|
||||||
def exists_passwords_folder(self, name):
|
def exists_passwords_folder(self, name):
|
||||||
'''Test if a passwords folder exists'''
|
'''Test if a passwords folder exists'''
|
||||||
|
|
Loading…
Reference in a new issue