Skip to content

Commit b9c5a38

Browse files
committed
Fixes small syntax errors in loklak.py
Removes extra else statement
1 parent c204a63 commit b9c5a38

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

loklak.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def settings(self):
152152
return return_to_user.json()
153153
else:
154154
return_to_user = {}
155-
return_to_user['error'] = 'This API has access restrictions:'
155+
return_to_user['error'] = ('This API has access restrictions:'
156156
' only localhost clients are granted.')
157157
return json.dumps(return_to_user)
158158

@@ -299,8 +299,3 @@ def account(self, name=None, action=None, data=None):
299299
return_to_user['error'] = ('No Query string has been given'
300300
' given to query for an account')
301301
return json.dumps(return_to_user)
302-
else:
303-
return_to_user = {}
304-
return_to_user['error'] = ('No Query string has been given'
305-
' to query for an account')
306-
return json.dumps(return_to_user)

0 commit comments

Comments
 (0)