質問編集履歴
1
エラー箇所修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -10,10 +10,24 @@
|
|
10
10
|
|
11
11
|
昨日の日付のみそれ以降の処理に進むということをしたいのですが、正規表現のところで引っかかっています。。
|
12
12
|
|
13
|
+
エラー文
|
13
14
|
```
|
15
|
+
File "/Users/myname/Desktop/file/vscode/f_rescue.py", line 46, in <module>
|
16
|
+
cfm_date = str2date(cfm_date_str)
|
17
|
+
File "/Users/myname/Desktop/file/vscode/f_rescue.py", line 12, in str2date
|
18
|
+
tar_date = datetime(int(result[1]), int(result[2]), int(result[3]))
|
14
|
-
'NoneType' object is not subscriptable
|
19
|
+
TypeError: 'NoneType' object is not subscriptable
|
15
20
|
```
|
21
|
+
エラー箇所
|
22
|
+
```
|
23
|
+
<line 46>
|
24
|
+
cfm_date = str2date(cfm_date_str)
|
16
25
|
|
26
|
+
<line 12>
|
27
|
+
tar_date = datetime(int(result[1]), int(result[2]), int(result[3]))
|
28
|
+
```
|
29
|
+
|
30
|
+
|
17
31
|
一応ブラウザの動きを見ると、
|
18
32
|
```
|
19
33
|
# 遷移したページ内の投稿日を確認
|