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

잔글 (봇: 자동으로 텍스트 교체 (-source +syntaxhighlight))
 
(사용자 2명의 중간 판 9개는 보이지 않습니다)
3번째 줄: 3번째 줄:


==문제상황==
==문제상황==
<source lang='dos'>
<syntaxhighlight lang='console'>
[root@jmnote ~]# 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>


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


==같이 보기==
==같이 보기==
*[[DeprecationWarning: object.__init__() takes no parameters]]
*[[DeprecationWarning: the md5 module is deprecated; use hashlib instead]]
*[[DeprecationWarning: the md5 module is deprecated; use hashlib instead]]
*[[DeprecationWarning: object.__init__() takes no parameters]]
*[[Python DeprecationWarning 목록]]


[[분류: mod_python]]
[[분류: Python 오류]]
[[분류: Python 오류]]

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 }}