tschoppi / starsystem-gen

Automated Generation of a GURPS 4e Star System as described in GURPS: Space
Other
39 stars 16 forks source link

AttributeError: 'Star' object has no attribute 'get_temperature' #66

Closed bion33 closed 4 years ago

bion33 commented 6 years ago

I got the following error on running the generator:

500 Internal Server Error

The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last): File "...\Python-3.6\lib\site-packages\cherrypy_cprequest.py", line 630, in respond self._do_respond(path_info) File "...\Python-3.6\lib\site-packages\cherrypy_cprequest.py", line 689, in _do_respond response.body = self.handler() File "...\Python-3.6\lib\site-packages\cherrypy\lib\encoding.py", line 221, in call self.body = self.oldhandler(*args, *kwargs) File "...\Python-3.6\lib\site-packages\cherrypy_cpdispatch.py", line 54, in call return self.callable(self.args, self.kwargs) File "server.py", line 71, in starsystem mysys = starsys.StarSystem(arguments) File "...\Desktop\starsystem-gen-master\gurpsspace\starsystem.py", line 18, in init self.stars = self.generate_stars(self.num_stars) File "...\Desktop\starsystem-gen-master\gurpsspace\starsystem.py", line 119, in generate_stars temporary_stars.append(star.Star(age=self.age)) File "...\Desktop\starsystem-gen-master\gurpsspace\star.py", line 25, in init self.__star_type = self.get_star_type() File "...\Desktop\starsystem-gen-master\gurpsspace\star.py", line 219, in get_star_type key=lambda i: abs(StEvoTable['temp'][i] - self.get_temperature())) File "...\Desktop\starsystem-gen-master\gurpsspace\star.py", line 219, in key=lambda i: abs(StEvoTable['temp'][i] - self.get_temperature())) AttributeError: 'Star' object has no attribute 'get_temperature'

Powered by CherryPy 18.0.0

tschoppi commented 6 years ago

Woopsie. Thanks for the bug report, we'll have a look at it!