Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
codiebeulaine committed May 3, 2021
1 parent 65b09a2 commit 424dbef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions molo/core/migrations/0001_squashed_0077_molo_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ def convert_media_to_molo_media(apps, schema_editor):
media.save()
for article in ArticlePage.objects.all():
for block in article.body:
if block.block_type is 'media' and block.value is media.id:
if block.block_type == 'media' and block.value == media.id:
block.value = new_media.id
article.save()

Expand Down Expand Up @@ -499,7 +499,7 @@ def __init__(self, name, app_label):
if migrations:
self.run_before = list(self.__class__.run_before)
self.dependencies = list(self.__class__.dependencies)
except:
except error as e:
self.run_before = list(self.__class__.run_before)
self.dependencies = [
('wagtailcore', '0052_pagelogentry'),
Expand Down

0 comments on commit 424dbef

Please sign in to comment.