Dana Sun, 20 Jun 2010 10:53:08 +0200,
Peter Otten <__pete...@web.de> kaze:
> Now in your case village.py is first run as the main script and then
[...]
> In the account module you indirectly raise village.ExceptionWithLongName and
> in __main__ you try to catch __main__.ExceptionWithLongName.
P
Nikola Skoric wrote:
> Dana Fri, 18 Jun 2010 20:01:45 +0200,
> Peter Otten <__pete...@web.de> kaze:
>> Solution: move your startup code into a separate file and have it import
>> the village module.
>
> Excellent, thanks! Everything works now, but I still don't quite get what
> the problem is...
Dana 18 Jun 2010 17:45:31 GMT,
Steven D'Aprano kaze:
> Other than that, I notice that your module throws away useful debugging
> information, and replaces it with bland, useless pap of no nutritional
> value:
>
> try:
> import account, fetch, resources, const
> except Exception:
> raise
Dana Fri, 18 Jun 2010 20:01:45 +0200,
Peter Otten <__pete...@web.de> kaze:
> Solution: move your startup code into a separate file and have it import the
> village module.
Excellent, thanks! Everything works now, but I still don't quite get what the
problem is...
> You are importing your main
nick wrote:
> I have a problem with catching my own exception. Here is the code:
>
http://fly.srk.fer.hr/~nick/travapi/blame.php?repname=Travian+API&path=%2Fvillage.py&;
>
> Line 252 calls a method, which on line 207 raises a
> SomethingBeingBuiltError exception. O
Dana Fri, 18 Jun 2010 10:36:21 -0700 (PDT),
Jon Clements kaze:
> http://www.travian.com/spielregeln.php -- rule 3???
Yeah, I know. If it's any consolation to you, I'm not doing it for the
fun of wining the game (hence not bothering to hide de code) but for
the fun of coding the API. :-)
Anyway,
On Fri, 18 Jun 2010 17:08:45 +, nick wrote:
> I have a problem with catching my own exception. Here is the code:
> http://fly.srk.fer.hr/~nick/travapi/blame.php?repname=Travian+API&path=%
2Fvillage.py&
>
> Line 252 calls a method, which on line 207 raises a
> S
On 18 June, 18:08, nick wrote:
> I have a problem with catching my own exception. Here is the
> code:http://fly.srk.fer.hr/~nick/travapi/blame.php?repname=Travian+API&pat...
>
> Line 252 calls a method, which on line 207 raises a
> SomethingBeingBuiltError exception. On li
I have a problem with catching my own exception. Here is the code:
http://fly.srk.fer.hr/~nick/travapi/blame.php?repname=Travian+API&path=%2Fvillage.py&;
Line 252 calls a method, which on line 207 raises a
SomethingBeingBuiltError exception. On line 253 I catch that
exception, but when I