We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df805dd commit e56338dCopy full SHA for e56338d
app/location/country.py
@@ -449,7 +449,7 @@ def getInstance():
449
def __init__(self) -> None:
450
""" Virtual Private Constructor"""
451
if Country.__shared_instance != None:
452
- raise Exception("This is a singleton class !")
+ raise Exception("Singleton Class already initialized. Please use getInstance()")
453
else:
454
Country.__shared_instance = self
455
0 commit comments