Skip to content

Commit

Permalink
Silence CryptogrpahyDeprecationWarning in metadata module
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Nov 13, 2020
1 parent 84f0ad4 commit b2b2544
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/galaxy/metadata/set_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
import os
import sys
import traceback
import warnings

# Warning on stderr will cause some jobs to be failed.
# This silences deprecation warnings in the cryptography module.
if sys.version_info.major <= 3 and sys.version_info.minor < 6:
warnings.filterwarnings("ignore", module='CryptographyDeprecationWarning')

from six.moves import cPickle
from sqlalchemy.orm import clear_mappers
Expand Down

0 comments on commit b2b2544

Please sign in to comment.