Skip to content
Browse files

finished tested failover code

  • Loading branch information...
1 parent eae59fc commit 2af4af526a3047d904bf6a046b5a1e933add4608 @progrium progrium committed Dec 27, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 pfsense/bridge.py
View
4 pfsense/bridge.py
@@ -32,8 +32,8 @@ def HandleAuthPacket(self, pkt):
member_cache[mac_address] = user
reply.code=packet.AccessAccept
print "success: %s %s %s %s" % (mac_address, user, download, upload)
- except urllib2.HTTPError, e:
- if e.getcode() == 404:
+ except (urllib2.URLError, urllib2.HTTPError), e:
+ if hasattr(e, 'getcode') and e.getcode() == 404:
reply.code=packet.AccessReject
print "fail: %s" % mac_address
else:

0 comments on commit 2af4af5

Please sign in to comment.
Something went wrong with that request. Please try again.