"DeprecationWarning: catching of string exceptions is deprecated"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-<source lang='cli'> +<source lang='console'>))
잔글 (봇: 자동으로 텍스트 교체 (-source +syntaxhighlight))
 
(같은 사용자의 중간 판 2개는 보이지 않습니다)
3번째 줄: 3번째 줄:


==문제상황==
==문제상황==
<source lang='console'>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# cat /var/log/httpd/error_log | grep 'catching of string exceptions is deprecated' -A1 -m1
[root@zetawiki ~]# cat /var/log/httpd/error_log | grep 'catching of string exceptions is deprecated' -A1 -m1
/usr/lib64/python2.6/site-packages/mod_python/importer.py:1549: DeprecationWarning: catching of string exceptions is deprecated
/usr/lib64/python2.6/site-packages/mod_python/importer.py:1549: DeprecationWarning: catching of string exceptions is deprecated
   except apache.PROG_TRACEBACK, traceblock:
   except apache.PROG_TRACEBACK, traceblock:
</source>
</syntaxhighlight>


==해결==
==해결==
<source lang='Python'>
<syntaxhighlight lang='Python'>
     except apache.PROG_TRACEBACK, traceblock:
     except apache.PROG_TRACEBACK, traceblock:
</source>
</syntaxhighlight>


==같이 보기==
==같이 보기==

2020년 11월 2일 (월) 00:55 기준 최신판

DeprecationWarning: catching of string exceptions is deprecated

1 문제상황[ | ]

[root@zetawiki ~]# cat /var/log/httpd/error_log | grep 'catching of string exceptions is deprecated' -A1 -m1
/usr/lib64/python2.6/site-packages/mod_python/importer.py:1549: DeprecationWarning: catching of string exceptions is deprecated
  except apache.PROG_TRACEBACK, traceblock:

2 해결[ | ]

    except apache.PROG_TRACEBACK, traceblock:

3 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}