Skip to content
This repository has been archived by the owner on Jul 24, 2018. It is now read-only.

Commit

Permalink
Careful about initializing fedmsg twice.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphbean committed Nov 16, 2015
1 parent 0c4b552 commit 9ea2da6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@

# Running this script actually produces fedmsg messages (since the db changes.)
# Start fedmsg in active mode so that it talks to a fedmsg-relay
fedmsg.init(active=True)
try:
fedmsg.init(active=True)
except ValueError:
pass

new_rules = [
'fmn.rules:faf_report_threshold1',
Expand Down
5 changes: 4 additions & 1 deletion alembic/versions/38c9c18d342e_add_new_mdapi_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@

# Running this script actually produces fedmsg messages (since the db changes.)
# Start fedmsg in active mode so that it talks to a fedmsg-relay
fedmsg.init(active=True)
try:
fedmsg.init(active=True)
except ValueError:
pass


def upgrade():
Expand Down

0 comments on commit 9ea2da6

Please sign in to comment.