Skip to content

Commit e56338d

Browse files
committed
Testing Singleton
1 parent df805dd commit e56338d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/location/country.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ def getInstance():
449449
def __init__(self) -> None:
450450
""" Virtual Private Constructor"""
451451
if Country.__shared_instance != None:
452-
raise Exception("This is a singleton class !")
452+
raise Exception("Singleton Class already initialized. Please use getInstance()")
453453
else:
454454
Country.__shared_instance = self
455455

0 commit comments

Comments
 (0)