o
    Ζ0ho                     @   s*   d dl mZ d dlZedZdd ZdS )    )call_commandNfpl_datac               
   C   sF   zt d W dS  ty" }  ztd|   W Y d} ~ dS d} ~ ww )zD
    Fetches and updates FPL data using the management command.
    update_fpl_datazError during FPL data update: N)r   	Exceptionloggererror)e r	   -/var/www/html/FantasyAPI/fantasy_data/cron.pyr      s   r   )django.core.managementr   logging	getLoggerr   r   r	   r	   r	   r
   <module>   s    
