Skip to content

Commit

Permalink
Merge pull request #1829 from UlrichB22/bandit_fix
Browse files Browse the repository at this point in the history
indexing.py: Narrow down the broad exception
  • Loading branch information
UlrichB22 authored Jan 24, 2025
2 parents 25f86fa + 3f90ef9 commit 3ffc383
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 3ffc383

Please sign in to comment.