소스 검색

fix logging msg

boyska 3 년 전
부모
커밋
cdf5733d59
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      larigira/audiogen_podcast.py

+ 2 - 1
larigira/audiogen_podcast.py

@@ -67,7 +67,8 @@ class Audio(object):
                 self._duration = get_duration(self.url.encode("utf-8"))
             except:
                 logging.exception(
-                    "Errore nel calcolo della lunghezza di %s; imposto a 0"
+                    "Error while computing duration of %s; set it to 0",
+                    self.url,
                 )
                 self._duration = 0
         return self._duration