Skip to content

Commit

Permalink
Merge pull request #10 from vorband/master
Browse files Browse the repository at this point in the history
small fix when hpfeeds is not in use
  • Loading branch information
awhitehatter committed May 30, 2018
2 parents ce20696 + 90c38ea commit 9f4df37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mailoney.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@
def connect_hpfeeds():
# set hpfeeds related data
hpfeeds_server = args.hpfserver
hpfeeds_port = int(args.hpfport)
hpfeeds_port = args.hpfport
hpfeeds_ident = args.hpfident
hpfeeds_secret = args.hpfsecret
hpfeeds_prefix = args.hpfchannelprefix

if hpfeeds_server and hpfeeds_port and hpfeeds_ident and hpfeeds_secret and hpfeeds_prefix:
try:
hpc = hpfeeds.new(hpfeeds_server, hpfeeds_port, hpfeeds_ident, hpfeeds_secret)
hpc = hpfeeds.new(hpfeeds_server, int(hpfeeds_port), hpfeeds_ident, hpfeeds_secret)
return hpc, hpfeeds_prefix
except (hpfeeds.FeedException, socket.error, hpfeeds.Disconnect), e:
print "hpfeeds connection not successful"
Expand Down

0 comments on commit 9f4df37

Please sign in to comment.