Skip to content

Commit

Permalink
Merge pull request #851 from gubatron/transport-shutdown-fix
Browse files Browse the repository at this point in the history
Silences unnecessary error log on shutdown.
  • Loading branch information
Renelvon committed Oct 23, 2014
2 parents dc42ba6 + a26d2d1 commit f1f95e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion node/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,8 @@ def shutdown(self):
print "Notice: explicit DHT Shutdown not implemented."

try:
self.bitmessage_api.close()
if self.bitmessage_api is not None:
self.bitmessage_api.close()
except Exception as e:
# It might not even be open; we can't do much more on our
# way out if exception is thrown here.
Expand Down

0 comments on commit f1f95e9

Please sign in to comment.