sfi update checks for its args a bit more robustly
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Sat, 2 Jun 2012 10:39:35 +0000 (12:39 +0200)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Sat, 2 Jun 2012 10:39:35 +0000 (12:39 +0200)
sfa/client/sfi.py

index 6b0934d..b114c30 100644 (file)
@@ -861,7 +861,8 @@ or version information about sfi itself
             record_dict.update(load_record_from_file(rec_file).todict())
         if options:
             record_dict.update(load_record_from_opts(options).todict())
-        if not record_dict:
+        # at the very least we need 'type' here
+        if 'type' not in record_dict:
             self.print_help()
             sys.exit(1)