Skip to content

Commit

Permalink
fix(_safe_revert): Missing f-string
Browse files Browse the repository at this point in the history
9295e00 was missed, fix for #921's new message
  • Loading branch information
tony authored Nov 10, 2022
1 parent 3b9fa14 commit d827bb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reversion/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def _safe_revert(versions):
with transaction.atomic(using=version.db):
version.revert()
except (IntegrityError, ObjectDoesNotExist):
logger.warning('Could not revert to {version}', exc_info=True)
logger.warning(f'Could not revert to {version}', exc_info=True)
unreverted_versions.append(version)
if len(unreverted_versions) == len(versions):
raise RevertError(gettext("Could not save %(object_repr)s version - missing dependency.") % {
Expand Down

0 comments on commit d827bb1

Please sign in to comment.