Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

add more detail to logging regarding "More than one row matched" error #4234

Merged
merged 3 commits into from
Dec 4, 2018

Conversation

benparsons
Copy link
Member

No description provided.

@codecov-io
Copy link

codecov-io commented Nov 28, 2018

Codecov Report

Merging #4234 into develop will decrease coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #4234      +/-   ##
===========================================
- Coverage    73.55%   73.54%   -0.01%     
===========================================
  Files          299      299              
  Lines        29806    29806              
  Branches      4872     4872              
===========================================
- Hits         21923    21921       -2     
+ Misses        6456     6454       -2     
- Partials      1427     1431       +4
Impacted Files Coverage Δ
synapse/state/v1.py 90.69% <0%> (-1.56%) ⬇️
synapse/handlers/user_directory.py 70.73% <0%> (-0.31%) ⬇️
synapse/handlers/search.py 81.25% <0%> (ø) ⬆️
synapse/handlers/federation.py 61.72% <0%> (ø) ⬆️
synapse/app/homeserver.py 57.28% <0%> (+0.33%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7039ece...380d544. Read the comment docs.

@@ -849,9 +849,9 @@ def _simple_update_one_txn(cls, txn, table, keyvalues, updatevalues):
rowcount = cls._simple_update_txn(txn, table, keyvalues, updatevalues)

if rowcount == 0:
raise StoreError(404, "No row found")
raise StoreError(404, "No row found (%s)" % table)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The syntax here should be "No row found (%s)" % (table,)

@richvdh richvdh merged commit b5ac0ff into develop Dec 4, 2018
@benparsons benparsons deleted the benp/more-than-one-row-matched-logging branch December 4, 2018 11:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants