Skip to content

Commit

Permalink
py3: logging.warn is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
julen committed Jan 21, 2020
1 parent 5522e69 commit ce94dc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pootle/apps/reports/generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class PDFGenerator(object):
def is_configured():
phantomjs_bin = getattr(settings, 'ZING_INVOICES_PHANTOMJS_BIN', None)
if phantomjs_bin is None or not os.path.exists(phantomjs_bin):
logger.warn(
logger.warning(
'NOTICE: settings.ZING_INVOICES_PHANTOMJS_BIN '
'not defined or nothing found in the specified path. '
'PDFs will not be generated.'
Expand Down

0 comments on commit ce94dc8

Please sign in to comment.