| author | Bryan Bishop <kanzure@gmail.com> | 2013-07-09 06:58:24 (GMT) |
|---|---|---|
| committer | Bryan Bishop <kanzure@gmail.com> | 2013-07-09 06:58:24 (GMT) |
| commit | 29ea31c568999346f0c9c44afc2b20330602d3cb (patch) (side-by-side diff) | |
| tree | 934a4b8402b8e7164345c047a51f4952c6cbb856 | |
| parent | f69583d4224d68fbc3c7c6cb20effe7a7b31b4a2 (diff) | |
| download | paperbot-29ea31c5.zip paperbot-29ea31c5.tar.gz | |
UnboundLocalError: local variable 'shurl' referenced before assignment
| -rw-r--r-- | modules/papers.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/papers.py b/modules/papers.py index 09017ce..19c9726 100644 --- a/modules/papers.py +++ b/modules/papers.py @@ -46,6 +46,9 @@ def download(phenny, input, verbose=True): if len(line) < 5 or (not "http://" in line and not "https://" in line) or not line.startswith("http"): return for line in re.findall('http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+', line): + # fix an UnboundLocalError problem + shurl = None + line = filter_fix(line) # fix for login.jsp links to ieee xplore |
