Skip to content

Commit

Permalink
corrigido: divisao por 0 retorna string indefinido
Browse files Browse the repository at this point in the history
  • Loading branch information
mateus committed Mar 2, 2013
1 parent 41ee7dc commit 7f7cd4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion servidor-operacoes1/operacoes1.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def divisao(self, x, y):
try:
return str(float(x) / float(y))
except ZeroDivisionError:
return 'INFINITO'
return 'INDEFINIDO'
except:
return 'ERRO'

Expand Down

0 comments on commit 7f7cd4e

Please sign in to comment.