Commits

Tarek Ziadé  committed 73856e7

first draft of shortener

  • Participants
  • Parent commits 088c3d5

Comments (0)

Files changed (1)

                 tries += 1
 
         if new_key is None:
-            raise exc.HTTPServiceUnavailable()
+            raise ValueError("Cannot do this")
 
         self[new_key] = long_url
         return new_key