We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 416d30a commit 52ba1d5Copy full SHA for 52ba1d5
otsserver/rpc.py
@@ -71,7 +71,6 @@ def get_tip(self):
71
72
def get_backup(self):
73
chunk = self.path[len('/experimental/backup/'):]
74
- result = b''
75
try:
76
chunk = int(chunk)
77
result = self.backup[chunk]
@@ -81,6 +80,7 @@ def get_backup(self):
81
80
self.end_headers()
82
return
83
+ assert result is not None
84
self.send_response(200)
85
self.send_header('Content-type', 'application/octet-stream')
86
self.send_header('Cache-Control', 'public, max-age=31536000')
0 commit comments