Merge pull request #402 from cclauss/patch-1

Use ==/!= to compare str, bytes, and int literals
pull/404/head
Colin Kuebler 2019-11-18 12:57:53 -05:00 committed by GitHub
commit d0984d1769
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ def main():
tornado.ioloop.IOLoop.current().start()
except OSError as err:
print("Could not start server on port " + str(options.port))
if err.errno is 98: # EADDRINUSE
if err.errno == 98: # EADDRINUSE
print("Close the process on this port and try again")
else:
print(err)