GithubHelp home page GithubHelp logo

simuqq's People

Contributors

changingself avatar

Stargazers

 avatar

Watchers

 avatar  avatar

simuqq's Issues

未建立数据文件前,客户端登录按钮会导致服务器异常退出

再现步骤

  • 确保目录下无数据文件account_database.json
  • 运行服务端server.py或者对应的exe
  • 运行客户端client.py或者对应的exe
  • 输入用户名和密码
  • 点击客户端的登录按钮

将会产生如下异常:

Traceback (most recent call last):
  File ".\server.py", line 306, in <module>
    server.launch()
  File ".\server.py", line 41, in launch
    self.selectLoop()
  File ".\server.py", line 80, in selectLoop
    if self.acceptLogin(cliSock, cliAddr) == 0:
  File ".\server.py", line 214, in acceptLogin
    res = self.checkAccount(cliUserName, cliPassword)
  File ".\server.py", line 140, in checkAccount
    with open(self.dataFile, 'r') as fp:
FileNotFoundError: [Errno 2] No such file or directory: 'account_database.json'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.