Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' of ssh://jpgarch@complete.org/~jpgarch/git/pygo…

…pherd
  • Loading branch information...
commit 4c359e32e686fec07f22fc1f7564263e57f252e5 2 parents bf9fdd5 + ed65ee9
@jgoerzen jgoerzen authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 pygopherd/handlers/UMN.py
View
5 pygopherd/handlers/UMN.py
@@ -224,7 +224,10 @@ def getLinkItem(self, fd, capfilepath = None):
entry.setport(int(line[5:]))
done['port'] = 1
elif line[0:5] == 'Numb=':
- entry.setnum(int(line[5:]))
+ try: # Don't crash if we can't parse the number
+ entry.setnum(int(line[5:]))
+ except:
+ pass
elif line[0:9] == 'Abstract=':
abstractstr = ""
abstractline = line[9:]
Please sign in to comment.
Something went wrong with that request. Please try again.