Skip to content

Commit 9324e4e

Browse files
authored
python pls
1 parent 426de43 commit 9324e4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codebottle/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Result(object):
1717
"""A class with attributes of a codebottle API result"""
1818
def __init__(self, r):
1919
self.json = r.json()
20-
if self.json["error"] is not "":
20+
if self.json["error"]:
2121
raise CodebottleError(self.json["error"])
2222

2323
for k, v in self.json.items():

0 commit comments

Comments
 (0)