8000 correct raise · fluent/fluent-logger-python@abcf9b2 · GitHub
[go: up one dir, main page]

Skip to content

Commit abcf9b2

Browse files
committed
correct raise
1 parent a845417 commit abcf9b2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fluent/sender.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# -*- coding: utf-8 -*-
22

3-
from ast import Raise
43
import errno
54
import socket
65
import struct
@@ -135,7 +134,7 @@ def _make_packet(self, label, timestamp, data):
135134
elif label:
136135
tag = label
137136
else:
138-
Raise(ValueError("tag and label can not both be None"))
137+
raise ValueError("tag and label can not both be None")
139138
packet = (tag, timestamp, data)
140139
if self.verbose:
141140
print(packet)

0 commit comments

Comments
 (0)
0