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

잔글 (봇: 자동으로 텍스트 교체 (-<source lang='cli'> +<source lang='console'>))
잔글 (봇: 자동으로 텍스트 교체 (-<source +<syntaxhighlight ))
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
10번째 줄: 10번째 줄:


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

2020년 11월 2일 (월) 00:40 판

DeprecationWarning: catching of string exceptions is deprecated

1 문제상황

<syntaxhighlight lang='console'> [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:

</source>

2 해결

<syntaxhighlight lang='Python'>

   except apache.PROG_TRACEBACK, traceblock:

</source>

3 같이 보기

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