質問編集履歴

1

エラー箇所修正

2020/09/08 07:59

投稿

gomasan
gomasan

スコア96

test CHANGED
File without changes
test CHANGED
@@ -22,11 +22,39 @@
22
22
 
23
23
 
24
24
 
25
+ エラー文
26
+
25
- ```
27
+ ```
28
+
26
-
29
+ File "/Users/myname/Desktop/file/vscode/f_rescue.py", line 46, in <module>
30
+
31
+ cfm_date = str2date(cfm_date_str)
32
+
33
+ File "/Users/myname/Desktop/file/vscode/f_rescue.py", line 12, in str2date
34
+
35
+ tar_date = datetime(int(result[1]), int(result[2]), int(result[3]))
36
+
27
- 'NoneType' object is not subscriptable
37
+ TypeError: 'NoneType' object is not subscriptable
28
-
38
+
29
- ```
39
+ ```
40
+
41
+ エラー箇所
42
+
43
+ ```
44
+
45
+ <line 46>
46
+
47
+ cfm_date = str2date(cfm_date_str)
48
+
49
+
50
+
51
+ <line 12>
52
+
53
+ tar_date = datetime(int(result[1]), int(result[2]), int(result[3]))
54
+
55
+ ```
56
+
57
+
30
58
 
31
59
 
32
60