Skip to content

Instantly share code, notes, and snippets.

@adamcunnington
Created November 10, 2013 03:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamcunnington/cfbbdad12c2d1ecb2caa to your computer and use it in GitHub Desktop.
Save adamcunnington/cfbbdad12c2d1ecb2caa to your computer and use it in GitHub Desktop.
*** EventScripts caught an exception:
Traceback (most recent call last):
File "C:\SRCDS\steamapps\common\Counter-Strike Source Dedicated Server\cstrike
\addons\eventscripts\es.py", line 272, in triggerEvent
self.EventListeners[eventname][listener](event_var)
File "C:\SRCDS\cstrike\addons\eventscripts\rpg\rpg.py", line 212, in player_di
sconnect
session.add_all(PlayerPerk.data[user_ID].itervalues())
File "C:\SRCDS\cstrike\addons\eventscripts\rpg\rpg.py", line 293, in __exit__
self.session.commit()
File "C:\SRCDS\cstrike\addons\eventscripts\_engines\python\lib\site-packages\s
qlalchemy\orm\session.py", line 721, in commit
self.transaction.commit()
File "C:\SRCDS\cstrike\addons\eventscripts\_engines\python\lib\site-packages\s
qlalchemy\orm\session.py", line 354, in commit
self._prepare_impl()
File "C:\SRCDS\cstrike\addons\eventscripts\_engines\python\lib\site-packages\s
qlalchemy\orm\session.py", line 334, in _prepare_impl
self.session.flush()
File "C:\SRCDS\cstrike\addons\eventscripts\_engines\python\lib\site-packages\s
qlalchemy\orm\session.py", line 1818, in flush
self._flush(objects)
File "C:\SRCDS\cstrike\addons\eventscripts\_engines\python\lib\site-packages\s
qlalchemy\orm\session.py", line 1936, in _flush
transaction.rollback(_capture_exception=True)
File "C:\SRCDS3\cstrike\addons\eventscripts\_engines\python\lib\site-packages\
sqlalchemy\util\langhelpers.py", line 58, in __exit__
File "<string>", line 2, in reraise
File "C:\SRCDS\cstrike\addons\eventscripts\_engines\python\lib\site-packages\s
qlalchemy\orm\session.py", line 1900, in _flush
flush_context.execute()
File "C:\SRCDS\cstrike\addons\eventscripts\_engines\python\lib\site-packages\s
qlalchemy\orm\unitofwork.py", line 372, in execute
rec.execute(self)
File "C:\SRCDS\cstrike\addons\eventscripts\_engines\python\lib\site-packages\s
qlalchemy\orm\unitofwork.py", line 525, in execute
uow
File "C:\SRCDS\cstrike\addons\eventscripts\_engines\python\lib\site-packages\s
qlalchemy\orm\persistence.py", line 45, in save_obj
uowtransaction)
File "C:\SRCDS\cstrike\addons\eventscripts\_engines\python\lib\site-packages\s
qlalchemy\orm\persistence.py", line 170, in _organize_states_for_save
state_str(existing)))
FlushError: New instance <PlayerPerk at 0x21662b90> with identity key (<class 'r
pg.rpg.PlayerPerk'>, (1, 1)) conflicts with persistent instance <PlayerPerk at 0
x21662b70>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment