File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -102,3 +102,4 @@ venv.bak/
102102
103103# mypy
104104.mypy_cache /
105+ test.py
Original file line number Diff line number Diff line change @@ -109,8 +109,8 @@ def result(self):
109109 def download_pdf (self ):
110110 USERAGENT = {'User-Agent' : 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36' }
111111 if self .result ['success' ]:
112- downloaded_pdf = requests .get (pdf_response ['pdf' ], headers = USERAGENT )
113- data = download_response .content
112+ downloaded_pdf = requests .get (self . result ['pdf' ], headers = USERAGENT )
113+ data = downloaded_pdf .content
114114 return data
115115 else :
116116 raise FileNotFoundError ("PDF never generated " + self .result ['error' ])
You can’t perform that action at this time.
0 commit comments