Skip to content

Commit

Permalink
Corrected problem with delattr not erroring on repeat deletions.
Browse files Browse the repository at this point in the history
  • Loading branch information
freakboy3742 committed Oct 5, 2016
1 parent c02cf75 commit 91ccc2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/common/org/python/types/Object.java
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ public boolean __delattr_null(java.lang.String name) {

if (attr == null) {
org.python.Object result = this.__dict__.remove(name);
return result != null;
return result != null && !(result instanceof org.python.exceptions.AttributeError);
} else {
attr.__delete__(this);
return true;
Expand Down

0 comments on commit 91ccc2a

Please sign in to comment.