Skip to content
This repository
Browse code

Fixed no arguments being passed throwing an error

  • Loading branch information...
commit c035c972c4ec82aa7958d3b6f12b2ed5cebff5f6 1 parent 6ada6b6
David Burns authored May 19, 2011

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  garmr.py
4  garmr.py
@@ -89,7 +89,9 @@ def main():
89 89
                     help="File name with URLS to test, Currently not available")
90 90
 
91 91
     (options, args) = parser.parse_args()
92  
-    
  92
+    if len(args) == 0:
  93
+        parser.error("Please supply an argument")
  94
+
93 95
     garmr = Garmr(options.aut)
94 96
     garmr.trace_checks()
95 97
     garmr.xframe_checks()

0 notes on commit c035c97

Please sign in to comment.
Something went wrong with that request. Please try again.