Permalink
Browse files

made the dummyhub's error exception more similar to the real hub

  • Loading branch information...
1 parent 24a5488 commit d660d16f2c656c340fdee4630e159382a9ccb494 @lirazsiri lirazsiri committed Aug 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 dummyhub.py
View
@@ -288,7 +288,7 @@ def get_new_profile(self, profile_id, profile_timestamp):
archive = dummydb.get_profile(profile_id)
if not archive:
- raise Error("no profile exists for profile_id '%s'" % profile_id)
+ raise Error(404, 'BackupArchive.NotFound', 'Backup profile archive not found: ' + profile_id)
archive_timestamp = os.stat(archive).st_mtime
if profile_timestamp and profile_timestamp >= archive_timestamp:

0 comments on commit d660d16

Please sign in to comment.