From 31a5e2b4629fafe755c413951837cdca7d1ecfbe Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Mon, 8 Dec 2003 01:10:27 +0000 Subject: [PATCH] Added an assert to prevent improper usage by inexperienced developers. --- src/privmsgs.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/privmsgs.py b/src/privmsgs.py index 6c5bcb893..c1071b912 100644 --- a/src/privmsgs.py +++ b/src/privmsgs.py @@ -71,6 +71,7 @@ def getArgs(args, required=1, optional=0): If there aren't enough args even to satisfy required, raise an error and let the caller handle sending the help message. """ + assert not isinstance(args, str), 'args should be a list.' if len(args) < required: raise callbacks.ArgumentError if len(args) < required + optional: