Skip to content

Commit

Permalink
Revert error raising
Browse files Browse the repository at this point in the history
  • Loading branch information
linkyndy committed Jun 4, 2019
1 parent 93ea454 commit 0be7588
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions remodel/models.py
Expand Up @@ -75,9 +75,7 @@ def save(self):
result = (r.table(self.table_name).get(id_).replace(r.row
.without(r.row.keys().difference(list(fields_dict.keys())))
.merge(fields_dict), return_changes='always').run())
if result['errors'] > 0:
raise Exception(result['first_error'])
except:
except KeyError:
# Resort to insert
result = (r.table(self.table_name).insert(fields_dict, return_changes=True)
.run())
Expand Down

0 comments on commit 0be7588

Please sign in to comment.