We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71cef82 commit 86f61e9Copy full SHA for 86f61e9
cfbs/module.py
@@ -1,6 +1,7 @@
1
from collections import OrderedDict
2
3
from cfbs.pretty import pretty
4
+from cfbs.utils import CFBSUserError
5
6
7
def is_module_added_manually(added_by: str):
@@ -24,6 +25,10 @@ def __init__(
24
25
"""Initialize from argument with format `NAME[@VERSION]`"""
26
assert isinstance(arg, str)
27
if "@" in arg:
28
+ if arg.count("@") > 1:
29
+ raise CFBSUserError(
30
+ "Cannot specify more than one version of the same module"
31
+ )
32
self.name, self.version = arg.split("@")
33
else:
34
self.name = arg
0 commit comments