Browse files

bugfix: converting string to int will cause misleading error message

when the key is wrong
  • Loading branch information...
1 parent 4bb06cd commit e8e73aa0c94e66c46dd8de87c167245aabda60a5 @yifanzhang committed Mar 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 fixture_magic/management/commands/dump_object.py
View
2 fixture_magic/management/commands/dump_object.py
@@ -33,7 +33,7 @@ def handle(self, *args, **options):
#verify input is valid
(app_label, model_name) = args[0].split('.')
if options.get('file'):
- ids = [int(line.strip()) for line in file(options.get('file'))]
+ ids = [line.strip() for line in file(options.get('file'))]
else:
ids = args[1:]
assert(ids)

0 comments on commit e8e73aa

Please sign in to comment.