Skip to content

Commit

Permalink
Trans: Avoid printing migration message in case there is none
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Jul 23, 2020
1 parent ce0e19f commit 6cafd4f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions weblate/trans/migrations/0091_json_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ def migrate_componentlist(apps, schema_editor):
)
)
count = units.count()
if not count:
return
progress = -1
for pos, unit in enumerate(units.iterator()):
if unit.context.startswith("."):
Expand Down

0 comments on commit 6cafd4f

Please sign in to comment.