Skip to content

Commit

Permalink
Narrow down the broad exception
Browse files Browse the repository at this point in the history
  • Loading branch information
UlrichB22 committed Jan 22, 2025
1 parent 5c5732b commit 3f90ef9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/moin/storage/middleware/indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1237,7 +1237,7 @@ def store_revision(
try:
# if we get here outside a request, this won't work:
userid = flaskg.user.valid and flaskg.user.itemid or None
except: # noqa
except AttributeError:
pass
if wikiname is None:
wikiname = app.cfg.interwikiname
Expand Down

0 comments on commit 3f90ef9

Please sign in to comment.